Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gervinfung/tictactoe

Simple AI Tic-Tac-Toe Game made with Java Swing. Choose against AI or human. You can play in 3x3 grid up to 10x10.
https://github.com/gervinfung/tictactoe

alpha-beta-pruning game minimax multithread swing-background tictactoe tictactoe-java-game

Last synced: 12 days ago
JSON representation

Simple AI Tic-Tac-Toe Game made with Java Swing. Choose against AI or human. You can play in 3x3 grid up to 10x10.

Awesome Lists containing this project

README

        

## Getting Started

- I have decided to rewrite a TicTacToe game as the previous version is written badly
- Started TicTacToe to understand how MiniMax algorithm actually works

## Folder Structure

The workspace contains two folders by default, where:

- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies
- `res`: the folder to maintain resources

## To start the game

This is a multithreaded tic-tac-toe game that allows user to choose between playing against AI or another friend
No. | Steps
--- | ---
1.| Double click TicTacToe.jar file
2.| There's a menu that let you decide AI level, Grid Level, Start or Exit Game
3.| Watch 2 AI play against each other, or play against your friend, or play against AI
4.| User must choose the grid layout before they can start the game, which range from 3x3 and 10x10
5.| The game will restart when there's a winner, or it is a draw
6.| Different game layout can be chosen as well

![3x3 sample](3x3.png)
![4x4 sample](4x4.png)

## JAR file location
[TicTacToe.jar](out/artifacts/TicTacToe_jar/TicTacToe.jar)