talw / quoridor-hs

The 2-to-4-player strategy game - Quoridor, implemented in Haskell
Other
1 stars 1 forks source link

quoridor-hs

For anyone wishing to look through the commits history, I apologize in advance for not using rebase -i to make sure I submit concise and meaningful commits only. This was really just a Haskell learning exercise for me. Having said that, I'll be happy to solve any unclarity regarding quoridor-hs.

Introduction

An implementation in Haskell of the 2-to-4-player strategy game.

Here's a description of the game's rules: http://en.wikipedia.org/wiki/Quoridor#Rules_of_the_game

Screenshots

CLI

CLI

Web browser interface

Browser interface

Usage

quoridor-hs runs as a command-line application (quoridor-exec).

Modes

The executable can be run in one of the following modes:

Settings

Executing in local mode, or multiplayer's host mode, allows for the passage of arguments to specify game settings:

Example usage

Starting a local game of 2 players, on a board of 9x9, with 10 gates.

./quoridor-exec

Starting a host on default address (localhost) and port 4545, with an http server listening on port 4646. Game board size will be 7x7 and number of players is 3.

./quoridor-exec -b 7 -n 3 -h4545 -t4646

Notes

Install

Option 1: Install package from hackage

$ mkdir quoridor-hs
$ cd quoridor-hs
$ cabal sandbox init
$ cabal install quoridor-hs

After which you should have a quoridor-exec in .cabal-sandbox/bin/ where you 'cabal install'ed.

Option 2: clone from Github

To install:

$ git clone https://github.com/talw/quoridor-hs.git
$ cd quoridor-hs
$ cabal sandbox init
$ cabal install

After which you should have a quoridor-exec in .cabal-sandbox/bin/ where you 'cabal install'ed.

TODO