Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 718 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 718 Bytes

Snawk

Snawk is a snake implementation in awk. Because I could.

Run with ./run.sh.

Use h, j, k and l followed by enter to move the snawk around. Hit ctrl+d to exit.

############
#         o#
#        o #
#   ####  o#
#   ####   #
#   #### * #
#        * #
#      *** #
############

Challenge

I would love to make it run in realtime instead of hitting enter between every move, but I couldn't find a way to do that using only tools that are as ubiquitous as awk. If you can make that happen, a pull request would be most appreciated (it needs to actually work, though. I have plenty ideas that does half the job, but no complete solution).