Snake in PowerShell console buffer
04 Jan 2016As a part of “discovering” PowerShell, I had an idea to quickly wrap-up a classic snake game. So.. despite of having lots of more urgent tasks on my head at that moment, I of course decided to sacrifice few hours to this task. The result is this:
The game can be started with 5 different speeds. So far no “maps” (obstacles) but that may come in the future (to be honest, I am afraid that I’ll waste even more time on this project).
The code to quickly deal with console buffer that I’ve found on poshcode.com was of great help.
The game’s code can be found on my github: https://github.com/spitfire05/PowerSnake
Update: Graphical version has been made (using WinForms), allowing me to pass ‘Operating Systems’ course at my Uni.. emm, yeah. You can find it here: https://github.com/spitfire05/PowerSnakeGFX