A minesweeper game made in Haskell using the console.
This game is used as research in a school assignment.
The game can only be played on windows. To compile it for your own operating system, take a look at how it was done in build.bat and build.ps1.
To play the game, download an exe from the releases and then run it.
To build the game yourself run the following in your terminal of choice (Windows only). The generated .exe can be found in the bin
directory:
.\build
To develop this program for yourself you will need the following programs, which can be installed on the haskell downloads page:
- GHC
- Stack
After installing these you will also need the System.Random
haskell module.
To install this module run the following command in the terminal:
stack ghci --package random
Then run the following commands in the terminal:
cd src
stack ghci main.hs
Then once you are in ghci call the following function:
main