pbignardi / snake-js

Javascript to play Snake
1 stars 0 forks source link

Drop-in replacement for the snake object #16

Closed pbignardi closed 4 months ago

pbignardi commented 4 months ago

Snake object constructed as an actual object with private fields to prevent manipulation of the snake state. Future changes should deal with the modularity of the code:

Closes #15

pbignardi commented 4 months ago

Concerning the boundary identification in the constructor function, this is out of the scope of the PR. No longer a drop-in replacement. Should be moved to different PR