benschaf / kaesekaestchen

Welcome! This is a web application that allows users to play the game of Käsekästchen online. The web-app is built using HTML, CSS, and JavaScript. It also includes an AI opponent that can play against the user. Please feel free to fork this repository and make your own contributions!
0 stars 1 forks source link

refactor div coordinates to within the id value of each div (best practise) #40

Open benschaf opened 8 months ago

benschaf commented 8 months ago

Instead of giving each div the xPos, yPos property, each div could have an Id with those values. This would allow to address them directly in the dom instead of always looping through the whole grid

example id: "${xpos}-${yPos}"