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

This bug comes up in the console when a game is over #61

Closed benschaf closed 7 months ago

benschaf commented 7 months ago

Image

benschaf commented 7 months ago

the commit 5ea0a06d770d5fc40ddef95290c52f4a316ee83e solved the issue ...

benschaf commented 7 months ago

Commit message of above commit: feat: tick will only run if game is not over

the solution was to return out of the tick function depending on a "game is running" boolean