Snake in PowerShell console buffer

As 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:

PowerSnake window

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 was of great help.

The game’s code can be found on my github:

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: