snake-game
snake-game copied to clipboard
Terminal-based Snake game
This PR includes: - Pause when pressing space - Fix snake speed doubling when moving on Y axis - Change snake head colour to red to know its direction when...
Fix: #17 Signed-off-by: CooperLi
this commit was generated automatically on repl.it
Maybe you interest to merge :)
PS C:\Users\Admin\Downloads\snake-game> go run main.go fork/exec C:\Users\Admin\AppData\Local\Temp\go-build2933652261\b001\exe\main.exe: Accès refusé. go: failed to remove work dir: remove C:\Users\Admin\AppData\Local\Temp\go-build2933652261\b001\exe\main.exe: Accès refusé.
PS C:\Users\Admin\Downloads\snake-game> $GOPATH/bin/snake-game Au caractère Ligne:1 : 9 + $GOPATH/bin/snake-game + ~ Vous devez indiquer une expression de valeur après l’opérateur «/». Au caractère Ligne:1 : 9 + $GOPATH/bin/snake-game +...
We can use Multiple stage build for Dockerfile to reduce image size from nearly 700MB to ~2MB.
Would be nice to be able to pause/resume the game by pressing 'p'!
Would be fun to save the high score and display that on the screen!
Steps to reproduce the issue : 1. run $GOPATH/bin/snake-game in the terminal 2. press up/down arrow keys and the left/right arrow keys and notice the speed.