Skip to content

cool-mist/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

Build Status codecov

  • ❌'s and ⭕'s
  • 🤖 plays optimally
  • Java

Prerequisites

Item Requirement
Java 8+
Maven 3+

Build 🏗️

Clone the project

> cd ttt-parent
> mvn clean install

Run 🏃

> java -jar ttt/target/game.jar -h
usage: java -jar ttt/target/game.jar [options]
 -ai <arg>   AI (e)z or (h)ard
 -o          Play as O
 -x          Play as X

Samples 🤾‍♂️

Conditions [options]
Computer vs Computer (easy) -ai ez
Player ❌ vs Computer (easy) -x -ai ez
Player ⭕ vs Computer (hard) -o -ai hard
Player ❌ vs Player ⭕ -xo