#Criticize my code & how to block certain user input (babyproof foolproof)

4 messages · Page 1 of 1 (latest)

brave plank
#

I'm making the game "Mastermind" in HTML and vanilla JS.

My Problem: I dont know how to lock the whole table, so that the User is only able to edit (click) the current Attempt / table row. In other words: The user is able to put the selected color in every row and cell via mouseclick.

What I got so far:
-Start Button
-Reset Button
-Table generated dynamically with JS
-Colorpallet with selectable colors
-User is able to give each table cell the selected color

I would be so thankful if anybody would help 🥲

pastel meteorBOT
#

@brave plank

FettsackDave Uploaded Some Code
Uploaded these files to a Gist
pastel meteorBOT
#

@brave plank

FettsackDave Uploaded Some Code
Uploaded these files to a Gist
#

@brave plank

FettsackDave Uploaded Some Code
Uploaded these files to a Gist