Тёмный
No video :(

Build a Wordle clone using HTML, CSS & Javascript! 

Ian Lenehan
Подписаться 3,1 тыс.
Просмотров 43 тыс.
50% 1

Wordle is a simple word game taking the world by storm! In this video we wil build a Wordle clone using HTML, CSS and vanilla Javascript. We'll also use an API to get a new word and check if a guessed word exists.
Finished code: github.com/ian...
Add local storage for stats and game state in Wordle: • Using a Wordle clone t...
Video explaining REM in CSS: • Stop using pixels in y...
Latest in web development: • Keeping up with the la...

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 155   
@IanLenehan
@IanLenehan 2 года назад
Hey everyone, check out my next Wordle video where we use local storage to keep statistics and maintain game state! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lF4O1wvyVow.html
@IanLenehan
@IanLenehan 2 года назад
Please like and subscribe to help me grow this RU-vid channel!
@LambdaCreates
@LambdaCreates Год назад
Hey everyone! Here's a tip for beginners: You can also just add the defer attribute to the script tag and it will automatically check if the content has loaded instead of the DOMContentLoaded check at 6:28. Hope this helps.
@georgesmusic8541
@georgesmusic8541 2 года назад
Hi Ian, I am a computer science undergraduate and am interested in web development. I found this tutorial super helpful! In particular you've helped me improve my flex box and grid skills, and my javascript programming. I've been struggling to find resources on the internet for learning frontend and backend web dev that aren't just for beginners, so I hope you will do more tutorials like this!
@IanLenehan
@IanLenehan 2 года назад
Hey George - that's awesome to hear! If there's anything in particular you'd like to see me do, just let me know!
@johnthompson5034
@johnthompson5034 2 года назад
Thanks Ian, that was a huge help and the pace of the video was just about perfect. Off to take a look at your next Wordle video now.
@IanLenehan
@IanLenehan 2 года назад
Thanks John glad you enjoyed it!
@lampree
@lampree 2 года назад
im an iOS dev but since apps are a bit of a dying market ive always wanted to get better at web stuff. the quantity of js frameworks is a bit overwhelming though. since you stick with vanilla js this is really intriguing! going to give your tutorial a try
@IanLenehan
@IanLenehan 2 года назад
Cool, good luck with it! Reach out if you get stuck!
@anikanacey7978
@anikanacey7978 2 года назад
I've never used Javascript before, only Python, but when I found out NYT is buying Wordle, I ran right here! Thanks for the tutorial!
@IanLenehan
@IanLenehan 2 года назад
You’re welcome Anika! Yes big news for Wordle!
@lauris5275
@lauris5275 2 года назад
I remember that i tried wordle at one point. And didnt even know where to start. But after doing some coding problems. Now it feels pretty easy. I can do wordle clone alone (with simpler animations) without looking at tutorials. Nice and simple game. Biggest problem for me is dom tho... And to get an API for words. Logic not so much.
@HrissW
@HrissW Год назад
Is it true that after solving coding problems like dsa development becomes easier? Where you did coding problems?
@lauris5275
@lauris5275 Год назад
@@HrissW Mostly codewars and a bit leetcode. I solved only like 50+ leetcode problems. Leetcode easy problems can be quite hard and i think they are not for complete beginners. But codewars easy problems can be very simple, but sometimes tasks are more riddles. Hard to understand what need's to be done. I like codewars more cause there is a ranking system and leaderboards, solving problems feels abit more rewarding and you don't have to spend half a day to solve one problem.
@HrissW
@HrissW Год назад
@@lauris5275 what resources/courses you followed to learn DSA and Js problems? And thanks 🙌🏻
@brettsilvey1883
@brettsilvey1883 2 года назад
This was super helpful, really enjoyed the complete breakdown you provided great job.
@IanLenehan
@IanLenehan 2 года назад
Awesome thanks so much Brett
@ParasocialFix
@ParasocialFix 2 года назад
34:18 fun fact, wordle only uses about 2300 words as possible answers, but they accept about 12000 more as possible guesses :) I got that from looking at the code when I implemented my own wordle clone in SolidJS :)
@IanLenehan
@IanLenehan 2 года назад
Oh interesting the code is open source? I must have a look!
@ParasocialFix
@ParasocialFix 2 года назад
@@IanLenehan it's not :) but I was digging through the code on one of my streams :)
@IanLenehan
@IanLenehan 2 года назад
@@ParasocialFix very cool I’ll check your stream out
@kirso
@kirso 2 года назад
@@ParasocialFix oh do you have that stream recorded? Would love to check it out!
@ParasocialFix
@ParasocialFix 2 года назад
@@kirso thanks :) I'm writing this comment from youtube account I stream from :)
@davigs7218
@davigs7218 2 года назад
Two minutes in and I've learnt about five new VS Code tricks
@donnaleiber6214
@donnaleiber6214 2 года назад
Outstanding tutorial/walkthrough!! I've been coding for decades, since the days of mainframes and languages like COBOL and PL/1, but love to play with JS, HTML, CSS, PHP, etc. now that I'm retired. I very much enjoyed your step-by-step explanations of each function and followed your approach easily. You are very articulate and have the perfect voice and pace. I am happy to be a new subscriber and look forward to watching more of your videos. Thanks so much! Can't wait to try a version myself, maybe with 6- or 7-letter words, and maybe hook up to a mySQL DB of words culled from the API to grab the most well-known ones. Edit: I just read that the API you used has a "frequency" parameter so I'm thinking specifying high thresholds for that might help eliminate rarer words.
@IanLenehan
@IanLenehan 2 года назад
Thanks so much Donna for your thoughtful note! I'm really glad that even someone as experienced as yourself find this content useful and interesting!
@paulthomas1052
@paulthomas1052 Год назад
Great tutorial ! I enjoy your content and style. All the best from UK.
@IanLenehan
@IanLenehan Год назад
Thanks so much Paul!
@haciendadad
@haciendadad 2 года назад
Liked and subscribed! It has been so long since I did a project like this, without React, it was a nice refresher!
@IanLenehan
@IanLenehan 2 года назад
Thanks Joey glad you enjoyed it!
@ftblhd1
@ftblhd1 4 месяца назад
You also forgot to check something, if my random word was "yours" and my guessed word was "sense" it would check both S instead of only one of them so both would be yellow in this case, but only one should be.
@eduardoluiz5762
@eduardoluiz5762 2 года назад
I really enjoyed the tutorial man, thanks for help me out in web knowledge!
@IanLenehan
@IanLenehan 2 года назад
No problem! Glad you enjoyed it
@MiguelAngelCornejo81
@MiguelAngelCornejo81 2 года назад
Excellent tutorial, I did not know the touch-action property, it is something new for me
@IanLenehan
@IanLenehan 2 года назад
Thanks Miguel 🙏
@DavidMeddowsTaylor
@DavidMeddowsTaylor Месяц назад
Nice, but your algorithm to check the word and set the colors is a bit off. If the word is YODLE and you guess HELLO then you should not get {Grey, Yellow, Yellow, Green & Yellow} but instead it should be {Grey, Yellow, Grey, Green & Yellow}. The L exists in YODLE once, so only one of the L's in HELLO should have a color. Since one of them is Green, the other should be Grey. If the word were LABOR instead of YODLE then HELLO would have one Yellow L and one Grey L (it would be {Grey, Grey, Yellow, Grey, Yellow}). Each letter in the actual word should only apply a color to one letter in the guess. Once it has applied a color to the guess it should not be considered again.
@ZagzookGames
@ZagzookGames 9 месяцев назад
I really like this tutorial it is helping me understand the JavaScript and CSS. I was wondering it you could do a clone of nerdle?
@happyarish
@happyarish 2 года назад
400 Subscriptions? Let's add to that. Great video!
@IanLenehan
@IanLenehan 2 года назад
Haha thanks Arish!!
@navneethreddy2624
@navneethreddy2624 2 года назад
Really good tutorial... Following and trying to make my own clone of Wordle... Thank you for this good video :)
@IanLenehan
@IanLenehan 2 года назад
You're very welcome!
@silveyfam
@silveyfam Год назад
Awesome! How about building something like NY Times, Connections?
@lego-qe4zf
@lego-qe4zf 2 года назад
Hello. I found a bug - if I input “SSSSS”, and the word is “SUPER”, the first S will show green, but the other four will show yellow, even though there is only one S. I thought about only counting letters the amount of times that letter appears in the word (so I would only look for one S), but found another problem with this solution: If the word is “SISSY” and I input “SSSSS”, but only look for 3 S’s, the first one would be green, the second would be yellow, the third would be green, but the forth would be grey, even though it is an exact match. Do you know a better way to fix this? Thank you.
@IanLenehan
@IanLenehan 2 года назад
Hey yes thanks I actually continued to work on this after this video. If you check out my next video on local storage with Wordle, the source code linked in the description has what you describe fixed up. I initially didn't realise that's how Wordle did it.
@MrSaixa
@MrSaixa 2 года назад
just use hashmap. Key = letter, value = repetitions of this letter
@abdulquadir9342
@abdulquadir9342 2 года назад
Indeed interesting.... liked and followed...
@bigbitprods
@bigbitprods Месяц назад
Thanks for this! Any way to pull the words from a custom list so they can be inside jokes with friends?
@animehypeofficial
@animehypeofficial 2 года назад
You can make clone apps video like Netflix etc to get views.
@erkant984
@erkant984 2 года назад
Thanks lan, we follow you from Turkey
@IanLenehan
@IanLenehan 2 года назад
Hey Erkan! Thanks for watching :-)
@AN-ei4jf
@AN-ei4jf 2 года назад
At 42:24, your guess 'HELLO' has 1 'L' highlighted green and 1 yellow but there should not be any Yellow tiles (since there is only 1 'L' in the correct word).
@IanLenehan
@IanLenehan 2 года назад
Hey yes it didn’t actually occur to me that this was in the rules of the game until someone pointed it out to me before! I have another Wordle video and this has been fixed in the code for that video.
@mohitzen
@mohitzen Год назад
​@@IanLenehan please paste its link
@SameerAbbasMughal
@SameerAbbasMughal 2 года назад
Thanks Sir! this video helps me a lot. I love the way you teach in this video this project. Thank you so much!
@IanLenehan
@IanLenehan 2 года назад
You’re very welcome Sameer! Glad you enjoyed it 😀
@SameerAbbasMughal
@SameerAbbasMughal 2 года назад
@@IanLenehan sir can you make a video on how to change keyboard keys color according to letters colors?
@IanLenehan
@IanLenehan 2 года назад
@@SameerAbbasMughal I probably won’t make a video on that but I actually did implement it after I made this video. If you check out my next video on local storage, there is a link to the source code there which has the keyboard keys changing colours like the real Wordle
@SameerAbbasMughal
@SameerAbbasMughal 2 года назад
@@IanLenehan Ok Sir Thanks a alot!
@Kimochi_Desu
@Kimochi_Desu 2 года назад
i just subscribed good quality programming video
@IanLenehan
@IanLenehan 2 года назад
Thanks so much Kimochi!
@issucdesnutz5609
@issucdesnutz5609 2 года назад
Hi! just a question. My browser keeps repeating,"Word not recognised." would there be a fix you know of?
@IanLenehan
@IanLenehan 2 года назад
Sorry just saw your question! If you find the line in the code where the alert with this text is called, there is a caught error. I'd suggest you console log out the error and see what is going wrong. Good luck!
@videomaster5437
@videomaster5437 3 месяца назад
I cant even get the black border on top of the page and i followed every step
@fatcloud7878
@fatcloud7878 2 года назад
Hey great video btw, i got about 23 minutes in when my boxes stopped appearing, it was just after sorting the handleSubmitWord function. They stopped appearing in the div so not a css issue. Thing is my square function and handle submit function look identical to yours. only number of squares because my version is slightly different
@IanLenehan
@IanLenehan 2 года назад
Hey, is the createSquares function running ok? you might want to put a try/catch block around it to see if there are any errors being logged out.
@fatcloud7878
@fatcloud7878 2 года назад
@@IanLenehan Thanks, i found the issue but can't remeber what is was.
@shashinb5125
@shashinb5125 2 года назад
@@fatcloud7878 hey how did you resolve this error i also have the same problem???
@divyanshmishra7709
@divyanshmishra7709 2 года назад
Thats an awesome tutorial !! It would be helpful if would teach DOM manipulation using JS as i find it a bit complicated. Also, can anybody explain me why the datakey of enter and delete button are not being displayed??
@alan_1213
@alan_1213 2 года назад
Dan Abramov did it couple weeks ago
@IanLenehan
@IanLenehan 2 года назад
Yes and I’m sure we probably did it in different ways too. Programming is great because there’s so many ways to achieve the same thing!
@jackpx24
@jackpx24 2 года назад
Great tutorial! Thank you
@IanLenehan
@IanLenehan 2 года назад
Thanks Jack!
@gerrymacdermott6222
@gerrymacdermott6222 2 года назад
Hi Ian, great video! I was wondering, if you wanted a range of word lengths, is there a automated way to change how many letter boxes are displayed? So like; today is a 6 letter word, tomorrow is 4 letter and the day after is 5 letters. How can I have it to display the corresponding number of letters without having to manually update the css?
@IanLenehan
@IanLenehan 2 года назад
Hey Gerry - yes there should be a way for you to do this! Been a while since I looked at the code but you could probably substitute some of the numbers in the JS for variables that are controlled by the board. To control the length of the words and number of tiles. For example, in `createSquares`. You'd also need to be able to use JS to control `grid-template-columns: repeat(5, 1fr);` instead of a CSS file. Inline styles perhaps
@goose5095
@goose5095 2 года назад
liked and sub thanks alot for the walkthrough
@lee6704
@lee6704 2 года назад
What extensions do you use for your Visual Studio Code? You seem to have a few that look dead handy! Just subbed also great video! 🇮🇪
@IanLenehan
@IanLenehan 2 года назад
Thanks Lee! I have a recent video on my VS Code extensions :-) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-g1IEmnNBul8.html
@MrDickyhymes
@MrDickyhymes Год назад
Hello great video, do you have a video that shows me how to install add on for vs code?
@IanLenehan
@IanLenehan Год назад
Hey Shabba - yeah I have a video on some VS Code extensions! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-g1IEmnNBul8.html
@alexforejt6070
@alexforejt6070 2 года назад
Now thats cool, i would love to be able to do that, how long have you been coding? Btw great vid :)
@IanLenehan
@IanLenehan 2 года назад
Thanks so much Alex! Yeah it’s a lot of fun, I’ve been coding for about 6 years. How about you?
@alexforejt6070
@alexforejt6070 2 года назад
@@IanLenehan Im 16 and I started at like November last year, but im pretty happy, because I understand almost everything you did, just wouldnt have the idea...
@IanLenehan
@IanLenehan 2 года назад
@@alexforejt6070 that’s awesome, good for you! Keep going and you’ll definitely start to figure things like this out for yourself.
@richardhymes1460
@richardhymes1460 Год назад
Can you try and recreate worldle. Would the js be completely different? I don't understand how you can change the country image every 24hrs
@IanLenehan
@IanLenehan Год назад
Sorry Richard, I don't really understand your question. This video is about recreating Wordle with JS.
@joejoe3625
@joejoe3625 2 года назад
at 15:40 what causes him to say "that's because I forgot to add a full stop to my class" ?
@IanLenehan
@IanLenehan 2 года назад
I cut some stuff out to keep the video short but it probably wasn't working as expected - as I wasn't using the class selector properly
@Sp33dyfrog
@Sp33dyfrog 2 года назад
Does anyone know how to fix my keyboard going to the right of the squares box and moving it?
@IanLenehan
@IanLenehan 2 года назад
Hard to help without look at your code. Did you figure it out?
@ambergulbin2199
@ambergulbin2199 2 года назад
Hello, I'm doing this in TextEdit on my MacBook Air, and I've made the Index.html file, but do I open and make a whole new file for the styles.css? I did it and the html file isn't following the css file when I open it online.
@IanLenehan
@IanLenehan 2 года назад
Hey Amber - you’re better off downloading VS Code or something similar which is free as that is set up to manage a project like this.
@flavio1886
@flavio1886 2 года назад
nice bro
@ravencode5505
@ravencode5505 2 года назад
Amazing!
@LeonnardoNascimento
@LeonnardoNascimento 2 года назад
nice video! you are amazing!!
@IanLenehan
@IanLenehan 2 года назад
Ha thank you!
@willjohnson1334
@willjohnson1334 2 года назад
I am trying to forgo the Word APi, thus needing to hardcode a new word and not checking if a word exist, but when I remove the added code for that after the 34 minute mark, the letter field disappears.
@IanLenehan
@IanLenehan 2 года назад
Hey Will - I can't really debug here I'm afraid but check out this video where I had the words hardcoded already. The Github code is linked in the description ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lF4O1wvyVow.html
@tylerdurden7280
@tylerdurden7280 2 года назад
How can I upload the files to a website and have my friend try it out?
@IanLenehan
@IanLenehan 2 года назад
You can use something like Github Pages or a hosting service like Netlify to publish your apps
@ShivamSingh-hk5pn
@ShivamSingh-hk5pn 2 года назад
Brother I have sign up for api but it's showing error
@IanLenehan
@IanLenehan 2 года назад
Sorry it's hard to debug something like that over RU-vid comments. Hopefully the error should give you a helpful error message
@manel6666
@manel6666 2 года назад
Instead of using an API, if possible to create a json file and take the word of the day from there in the same project? or maybe is better to create your API? thanks for the video, great job
@IanLenehan
@IanLenehan 2 года назад
Yes you can for sure! If you have a look at my other Wordle video with Local Storage, you can see that I do something like that.
@ayush7117
@ayush7117 2 года назад
Hey Ian, just wondering how I could go about adding the feature where the keyboard letters reflect the correct/incorrect colours. In the actual wordle when a letter turns green or yellow or dark grey that same colour shows up on the keyboard. Thank you.
@IanLenehan
@IanLenehan 2 года назад
Hey Ayush - after this video I did another Wordle video on on local storage. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lF4O1wvyVow.html Not shown in the video but I continued to work on the game and the description for the other video has a link to a PR on github where I have done what you are looking for.
@brookiecookie2
@brookiecookie2 2 года назад
Ignoring the purpose of the grid, how would you modify this to get all squares to appear on one row?
@IanLenehan
@IanLenehan 2 года назад
You probably want to remove `display: grid` and the other grid stuff from `#board` in the css. Not sure what it will look like tho!
@yatziry
@yatziry 2 года назад
Hi Ian! Thanks so much for this video, I followed along very well because your instructions are very clear. I am running into a probelm where if I input a valid word less than 5 letters, it still inputs it. The next guess starts on the same line leaving the board completely messed up. Do you have any solution for this? Thanks!
@IanLenehan
@IanLenehan 2 года назад
Hey! Sorry only getting to this now. Unfortunately it's very hard to help with debugging like this but feel free to take a close look at the source code linked in my Wordle/local storage video as that has everything pretty much complete!
@bp-fr9gi
@bp-fr9gi 2 года назад
Just FYI your RapidAPI key is still visible in commit history!
@IanLenehan
@IanLenehan 2 года назад
Yeah and after I warned people not to do that! 🤦‍♂️ Thanks for the heads up Brooke, I deleted the key from RapidAPI as soon as I realised what I’d done.
@pinkykids310
@pinkykids310 2 года назад
Hello , your vedio is great , but how do I make writing in the squares of the game Arabic not English ?
@IanLenehan
@IanLenehan 2 года назад
Hey, I am not really sure? I would guess it should work the same if the keyboard is also in Arabic?
@pinkykids310
@pinkykids310 2 года назад
@@IanLenehan Thank you❤
@sakshijain8244
@sakshijain8244 2 года назад
Hii! The tile colour appears for next row even when letters in current row are orange or green The color always appears in row below it. Could you suggest me where to make changes, css and js filed are okay
@IanLenehan
@IanLenehan 2 года назад
Hey Sakshi - I'm not really sure what you mean but I actually continued to work on Wordle and fix up some of the stuff that I noticed or others pointed out. You can see that here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lF4O1wvyVow.html and in the description is a link to the code on Github. Maybe it'll have a fix for you in there
@3rd_iimpact
@3rd_iimpact 2 года назад
Great stuff! Think you’ll try it in react for the next video?
@IanLenehan
@IanLenehan 2 года назад
Thanks Nayan! Probably won’t do the same thing in React but you never know 🙂
@JLarky
@JLarky 2 года назад
Dan Abramov already did that :)
@theyearlyone9859
@theyearlyone9859 2 года назад
Hi So I Created My Wordle Using Python But I dont know where to get all the 5 letter words.Is There Some database out there with all the words or something like that .Google only shows 50,60 5 letter words
@IanLenehan
@IanLenehan 2 года назад
Hey yeah there’s a words api that you can use. Check out the video linked in the description and I use that api to pull in random 5 letter words.
@WrestlePlanet
@WrestlePlanet 2 года назад
I am looking to add a custom range of words for the game to select from (revolving around a specific subject) instead of pulling from the words api, any tips of how to acheive this? I'd also like to stop the game looking to see if the guessed word is a word.
@IanLenehan
@IanLenehan 2 года назад
Good timing I am about to upload a new video on Wordle. This one is about local storage and the code (which I’ll share) has a custom list of words. Hopefully it’s what you’re after!
@WrestlePlanet
@WrestlePlanet 2 года назад
@@IanLenehan Great, I will be watching!
@mrperezz2779
@mrperezz2779 2 года назад
On my wordle, it shows me an error and says that the js file and css file cannot be loaded, any ideas on what may be wrong?
@IanLenehan
@IanLenehan 2 года назад
Hmm that sounds weird. What does the error say?
@scottneustadt
@scottneustadt 2 года назад
Hey Ian! Awesome guide!! I was going to try to mess around with the finished code, however, I am having trouble getting it up and running. I managed to connect the WordsAPI, however, now when I run the code I get an Uncaught TypeError. Basically, when I type the word, it recognizes and connects to the wordsapi, however the animation isnt happening, and the tile colors arent changing. Any thoughts?
@IanLenehan
@IanLenehan 2 года назад
Hey Scott - have you been able to log out an error? If you can figure out where it’s coming from, there should be more info to help you figure it out
@scottneustadt
@scottneustadt 2 года назад
@@IanLenehan sorry, I'm away from my computer at the moment... But I believe it was line 54 on the Main
@IanLenehan
@IanLenehan 2 года назад
@@scottneustadt all good I’m just suggesting you try to log out the error when you’re at it next and see if you can work out what is going wrong on your end. It’s hard for me to debug it if the same error doesn’t happen for me
@scottneustadt
@scottneustadt 2 года назад
@@IanLenehan the only thing I've changed on the code is the API key for the wordAPI. So I think it might be some sort of pre-req that I don't have? But I will definitely try to log the error when I get back. Thank you!
@jakewheat2786
@jakewheat2786 2 года назад
The github has one of our key's still saved in the js file no?
@IanLenehan
@IanLenehan 2 года назад
Hey Jake - yeah I foolishly did exactly what I warned in the video not to do! I disabled the key as soon as I realised what I’d done so it can’t be used anymore anyway. Thanks for pointing it out though 👍
@arielsehr1893
@arielsehr1893 2 года назад
Amazing tutorial - thank you! Any chance I can get my clone to take input from the computer's keyboard as well as the keyboard on the screen? Maybe a good challenge for myself? Thanks!
@IanLenehan
@IanLenehan 2 года назад
Yes I’m sure you can! You’d need to assign a function to document.onkeypress - this will take an event and you can get event.keyCode to find out what key was pressed. Great idea!
@arielsehr1893
@arielsehr1893 2 года назад
@@IanLenehan alright I’m going to try my hand at it! Thanks Ian!
@arielsehr1893
@arielsehr1893 2 года назад
If anyone's curious: this goes in the keyboard for loop: document.addEventListener('keydown', logKey); and then outside: function logKey(e) { let alpha = e.code; console.log(alpha); if (alpha === 'Enter') { handleSubmitWord() return; } if(alpha === 'Backspace') { handleDeleteLetter(); return; } else { let part = alpha.slice(3,); updateGuessedWords(part); } }; works on chrome and safari for me! but i'm a beginner so please don't @ me (too harshly)
@IanLenehan
@IanLenehan 2 года назад
Looks good Ariel, nice work!
@johnthompson5034
@johnthompson5034 2 года назад
@@arielsehr1893 Thanks, that’s really useful. I found I had to ensure that the part string was forced to lower case, and that it was only 1 character in length to avoid accidental input from Ctrl or space keys etc.
@sakshijain8244
@sakshijain8244 2 года назад
Hey! Is it necessary to enter our card details, or can we use free apis?
@IanLenehan
@IanLenehan 2 года назад
Yeah I think you can use dictionary.com API which is free - but that only works for checking if a word is valid. Otherwise you can hard code words in your code so you don't have to use the Words API. Again see this video where I do that ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lF4O1wvyVow.html
@safirar3842
@safirar3842 2 года назад
hello ian, thanks a lot for an amazing tutorial! i already follow the tutorial. but, the squares didn't show up. do you know how to fix this?
@IanLenehan
@IanLenehan 2 года назад
Hi Safira! Have a look at the createSquares and getNewWord functions and make sure they are running properly. See if you can console log anything out and also check the network tab to see if anything is failing.
@shashinb5125
@shashinb5125 2 года назад
Did you get how to resolve this??
@uni8322
@uni8322 2 года назад
Hi, Nice video. I'm struggling to make it work as a google webapp connected to a google sheet as word feed. Index page is loading, css file working through include tag. But javascript is not responding, even, when I place the content of the js file inside script tag blow inside the index file. Could you please make anohter video on how to feed Wordle from a wordlist in a google sheet and collect answer results in a chart sheet? I'm sure it could interest many people. Thanks
@IanLenehan
@IanLenehan 2 года назад
Hey, I did actually get this working with Google Sheets myself. Did you get an error messages? If you're running it locally, you need to run it on a local server to get it working with Google Sheets. Have you tried that? You can start local server with python by running `python -m SimpleHTTPServer`
@uni8322
@uni8322 2 года назад
@@IanLenehan Hi, this is the error message in de console, "Failed to load resource: the server responded with a status of 404 () main.js:1". The same message after I moved the js file's content inside the html file. I'm running it in my google account, in the extentions of a sheet.
@IanLenehan
@IanLenehan 2 года назад
@@uni8322 have you got the path to main.js correct? Looks like from the error it can’t locate the file.
@uni8322
@uni8322 2 года назад
@@IanLenehan I had left the link and also placed the js content at the bottom, inside html file. I removed the path. The result is the same, although other errors messages have poped up. I guess I have to spent some more time on the code. Thanks anyway.
@okejokej3591
@okejokej3591 2 года назад
Jesus frontend coding is so boring, don't like frontend
@IanLenehan
@IanLenehan 2 года назад
It’s not for everyone!
@Zaesougly
@Zaesougly 2 года назад
I’ve encountered a problem where if I keep pressing the delete button, the row on top deletes after the current row is deleted To fix this: In the handleDelete function Instead of using if(currentWordArr && currentWordArr.length < 6) You can use if(*currentWordArr.length > 0* && currentWordArr.length < 6)
@IanLenehan
@IanLenehan 2 года назад
Yes this version of Wordle wouldn't probably have been production ready. Nice work fixing that bug though!
@Zaesougly
@Zaesougly 2 года назад
@@IanLenehan thank you I’ve made it a couple times before I tried to fix it
@antmaster9713
@antmaster9713 2 года назад
I'm confused that was never in the handleDelete function?
Далее
Build this JS calculator in 15 minutes! 🖩
15:20
Просмотров 499 тыс.
I Built a WATERPARK In My House!
26:28
Просмотров 13 млн
Wordle in JavaScript in 20 minutes
18:02
Просмотров 22 тыс.
Making a Game in JavaScript with No Experience
5:49
Просмотров 817 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 944 тыс.
Why I only use vanilla HTML, CSS, and JS on YouTube
4:32
A game of TicTacToe written in JavaScript ⭕
18:57
Просмотров 111 тыс.