https://github.com/nwtgck/tick-tack-toe-scala
Tick-Tack-Toe written in Scala by using minimax
https://github.com/nwtgck/tick-tack-toe-scala
scala tick-tack-toe
Last synced: 2 months ago
JSON representation
Tick-Tack-Toe written in Scala by using minimax
- Host: GitHub
- URL: https://github.com/nwtgck/tick-tack-toe-scala
- Owner: nwtgck
- Created: 2018-05-04T04:47:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T06:19:23.000Z (about 7 years ago)
- Last Synced: 2025-02-06T13:29:59.155Z (4 months ago)
- Topics: scala, tick-tack-toe
- Language: Scala
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tick-Tack-Toe in Scala
[](https://travis-ci.com/nwtgck/tick-tack-toe-scala)Tick-Tack-Toe written in Scala by using minimax

## Machine vs Machine
```bash
sbt run
```## Human vs Machine
Random seed: 76
Circle player: human
Cross player : default ("minimax")```bash
sbt "runMain io.github.nwtgck.ticktacktoe.Main --random-seed=76 --circle=human"
```NOTE: The "minimax" machine finds **all possible moves**. So you never win this game unless it has a bug.
## Available options
```txt
Usage: Tick Tack Toe [options]--random-seed random seed (default: 10)
--circle player of circle ("human" or "minimax")
--cross player of cross ("human" or "minimax")
```