tfjs-examples icon indicating copy to clipboard operation
tfjs-examples copied to clipboard

Update and simplify snake_game.js game engine (2 liner)

Open nickolasnikolic opened this issue 2 years ago • 1 comments

Hi there!

I noted that the snake died a little early in some longer games, so I reworked the game engine to allow for longer snakes. It's now simplified to an additional array that is run through to see if the snake head has already been there. Thank you for your work!

nickolasnikolic avatar Jan 19 '24 22:01 nickolasnikolic

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jan 19 '24 22:01 google-cla[bot]