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 🥲