Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajeetdsouza/tic-tac-toe
A terminal-based tic-tac-toe game + AI
https://github.com/ajeetdsouza/tic-tac-toe
haskell tic-tac-toe
Last synced: 29 days ago
JSON representation
A terminal-based tic-tac-toe game + AI
- Host: GitHub
- URL: https://github.com/ajeetdsouza/tic-tac-toe
- Owner: ajeetdsouza
- License: gpl-3.0
- Created: 2019-02-27T16:45:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T17:21:53.000Z (almost 6 years ago)
- Last Synced: 2024-10-30T16:49:23.498Z (3 months ago)
- Topics: haskell, tic-tac-toe
- Language: Haskell
- Homepage:
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tic-tac-toe
[![Build Status](https://travis-ci.com/ajeetdsouza/tic-tac-toe.svg?branch=master)](https://travis-ci.com/ajeetdsouza/tic-tac-toe)
A simple tic-tac-toe game written in Haskell. Supports 3 agents: `Human`, `Random` and `Minimax`. Moves entered must be between `A1` and `C3`.
## Building
Once you have Stack set up, simply `cd` into the root directory and:
```sh
stack build
stack exec -- tic-tac-toe
```## Extending
More agents can easily be added to the `Player` data type. The `getMove :: Board -> Token -> IO Move` function must be implemented.