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