Skip to content

JanekKar/tic-tac-toe-kck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

CLI and GUI version of popular game TicTacToe. Players plays against computer.

Logic

Computer uses min-max algorithm to choose best moves. On different levels difficulty computer uses randomly min-max results or radom move - to insure that player has same chances to win.

app.cli

Using java library Lanterna - on branch cli

app.gui

Using swing - on branch gui.

How to run

Run compiled version

Download .jar file from GitHub

To run CLI version java -cp target/TicTacToe-1.0.jar app.Main

To run GUI version java -cp target/TicTacToe-1.0.jar app.Main --gui

Compile it yourself

Download source code or clone this repository.

To compile run: mvn package

To run CLI version java -cp target/TicTacToe-1.0.jar app.Main

To run GUI version java -cp target/TicTacToe-1.0.jar app.Main --gui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages