Networking class assignment, basic Tic-tac-toe server client. Implemented in haskell.
assuming that stack is installed...
> git clone https://github.com/masonwr/Haskell-ttt-networking.git
> cd Haskell-ttt-networking
> make
this installs the following two binary's: ttt-client
and ttt-server
.
To run the server sudo ttt-server
(the server runs on port 707).
To run the client ttt-client [ip of host]
, sit back and marvel at
the game unfolding before your eyes (if no host is specified, localhost is assumed).
The game logic (Minimax) is adapted from Gram Hutton's excellent Programming in Haskell book (highly recommended).