Snake.jl
The game of snake in the Julia REPL.
Modified from Chris DeLeon's 4:30 minute Javascript version.
Installation
] add Snake
Gameplay
using Snake
The game will start automatically.
- Hit
esc
to pause the game. - Resume with
play()
or restart the game withrestart()
Controls (wasd)
a
andd
to apply left and right velocitys
to apply down velocityw
to apply up velocityesc
to pause, thenplay()
to resume
Emoji support
To play using emojis, run:
play(emoji=true)
Other options
play(walls=true)
: Restart the game when hitting walls (defaultfalse
)play(size=(20,20))
: Change game field dimensions (default(20,20)
)