CLI-Labyrinth

One of the very first games I ever played on a home computer was a maze game called Labyrinth on the Sinclair ZX81. So when I wanted to learn Golang and delve a little deeper into terminal cli development, I decided to start with a simple maze game that could be run in a shell on the Linux command line.

As you can see from the screenshot, the graphics could, at best, be describes as very basic. But as a learning project, I’m quite pleased with the result.

If you’re interested in playing the game then you can download pre-built versions for Linux and MacOS from itch.io

Update 31/03/2024 - I’ve created a Web Assembly (wasm) build, so you can now play CLI-Labyrinth directly in your web browser

The source code is available on my GitHub. Please keep in mind that this was a learning exercise, so don’t expect the code to meet professional standards ;-)

If you want to download the game directly onto a Linux host via curl or wget, then take a look at the repleases page on the above GitHub Repo for a direct link.

As I mentioned at the top of this post, CLI-Labyrinth was inspired by the classic 16k Sinclair ZX81 game called Labyrinth, originally written in 1981. If you enjoy maze games, it’s worth checking out the original - it’s much better than my “modern” version.


Written By

Kev