In all the time I spent at work experience with DPI IT (which was awesome, by the way) – I had a load of free time; in fact, in the 5 days I had there, there was about 7 hours of just sitting there doing nothing. My attempt at turning this time into something productive was this:

#TextSweeper

Basically – it’s just minesweeper but it runs on console:-

Download it here (includes source)

(inside the archive is a ‘bin’ folder, the executable is in there) Download is half a meg – but that’s only because of the bloated VC++ dlls – the actual program is 22KB.

But – if you’re into code, I’ve got something for you as well. I tried to use *some *sort of OO paradigm – and I did (sort of). The code for the SweeperBoard header and implementation (most of the code overall) are both pretty well commented and organised. On the other hand, the actual ‘main’ code (TextSweeper.cpp), well, isn’t. Without further ado, here are the files on pastebin (They’re also in the download):-

SweeperBoard.cpp

SweeperBoard.h

TextSweeper.cpp

I’m happy for you to look at the code in the first two, but if you like a good hackjob don’t hesitate to take a peek at the last. You should be able to compile this yourself, just setup files with the same names in visual studio, paste in the contents, and away you go.

Happy Text Sweepin’!