Skip to content

pjincz/sed-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake game wrote by SED

run line by line

sed -f snake.sed
Then press enter key to start.

run with keyseq.sh (auto)

./keyseq.sh | sed -f snake.sed

run without keyseq.sh (auto, but has some issue)

while true; do read -t0.1 -n3 -s key; echo $key; done | sed -f snake.sed
# -t0.1 for speed, smaller is faster
# -n3 for arrow control, -n1 for asdw control

Enjoy...

About

Snake game wrote by SED

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages