Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fhunleth/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

asciicast

This was intended to try out ex_ncurses. Don't be disappointed if there are bugs or if you lose.

Running

First clone this project and do the following:

mix deps.get
iex -S mix
iex(1)> Snake.run

You can control the snake using the arrow keys, VI keys (hjkl), or wasd.

Creating the demo GIF

I used Asciinema to record the video and asciicast2gif to convert it to a gif. Here's a rough commandline:

asciinema rec
# do stuff
# CTRL+D when done. Upload video and note video number for the next line.
docker run --rm -v $PWD:/data asciinema/asciicast2gif https://asciinema.org/a/174483.json assets/demo.gif

Oddly enough asciicast2gif loses the arena border. No idea why.

About

Snake in Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages