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

grid is not passed to easyComputerTurn() function #75

Closed benschaf closed 7 months ago

benschaf commented 7 months ago

Follow these steps to reproduce the bug: add name "test" select AI goes first change difficulty to Easy slide grid size to 8x8 click Start New Game

this will throw an error in the console:

script.js:123 Uncaught ReferenceError: grid is not defined
    at easyComputerTurn (script.js:123:48)
    at script.js:246:13

Assignees: benschaf Labels: bug Milestone: