Skip to content

JaronZ/Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

A minesweeper game made in Haskell using the console.
This game is used as research in a school assignment.

Playing the game

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.

Building

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:

Command Prompt / PowerShell

.\build

Developing

Setup

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

Running the script

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