An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Tick-Tack-Toe in Scala
[![Build Status](https://travis-ci.com/nwtgck/tick-tack-toe-scala.svg?branch=master)](https://travis-ci.com/nwtgck/tick-tack-toe-scala)

Tick-Tack-Toe written in Scala by using minimax

![demo1](demo_images/demo1.gif)

## 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")
```