Skip to content

rashadg1030/reversi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reversi

You must have stack installed to play this game.

If you don't have stack already go here to learn how to install it.

  1. Clone the repository

  2. Cd into reversi

  3. Run the command stack build

  4. Run the command stack ghci

  5. Once everything is compiled, type main into the prompt to start a two-player game or type randomGame to generate a random game.

The rules of Reversi can be found here.

When prompted enter a location in the format (x,y). e.g. (2,1). If the input is invalid you will be prompted to try again.

A list of valid locations is provided for each player every turn.

Continue to play until both players don't have anymore moves.

To play again type main into the prompt.

Use Ctrl + C to exit the game at any time.

You can replay the previous game state by entering ((-1),(-1)).

A.I. is now available. After running the command stack ghci, type aiGame into the the prompt to play against the A.I. I'm still tweaking the algorithm, so it might be easy to beat. Enjoy!

About

The game of Reversi implemented in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published