Wordle game with HTML5, CSS, and JavaScript
zizotta
Posted messages
5
Status
Membre
-
Solved -
Solved -
Hello,
I want to create the game "Motus" using HTML5, CSS, and JavaScript, so I have created a matrix with HTML (<tr> <td> ... ). I want to know how I can enter letters into the table and read them?
Configuration: Windows 7 / Chrome 38.0.2125.104
I want to create the game "Motus" using HTML5, CSS, and JavaScript, so I have created a matrix with HTML (<tr> <td> ... ). I want to know how I can enter letters into the table and read them?
Configuration: Windows 7 / Chrome 38.0.2125.104
a javascript function to check that the input is correct (return boolean)
a javascript function that writes to the matrix
a javascript function that compares the entered letter with the expected one, colors the text accordingly
To manage the transition from one line to another, you'll need a variable.
You'll do all this with a form, an input area, and a button; don't forget to link your javascript file to the page.