Risk – a text adventure

1st year project

Now this is early days! Before I knew what a class was. What the Math() function did. What a Unity gamebobject was.

The brief was to make a board game in the text console and I, the masochist that I am, decided to do the hardest one.

Risk_opening

Now remember this is without knowledge of classes, so everything, all 1455 lines of childish code, is essentially contained in one class, in one poor Main() function.

Of course, there is a map. It is unfortunately made of ASCII characters, the double lines are continent borders. The picture below also shows the beginning of the tutorial.

The game plays identically to the board game without any of the dice rolling, moving troops by hand or stepping on loose cannon pieces. If you consider those the worst aspects of Risk AND you wish it was rendered in a drab monochrome, boy is this the game for you.

Risk_map

Turned out rather well, I think you’d agree. It took the entirety of my Christmas holidays but built a really strong foundation of C# in me to build on. If anyone wants the .exe let me know in a comment.

Leave a comment