charlyalizadeh / TicTacChess

An implementation of the minmax algorithm playing tictacchess.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TicTacChess AI

In this project I try to build an artificial intelligence that can play the game of Tic Tac Chess thanks to the Minimax algorithm and bitboards optimization.

Rules of TicTacChess

The TicTacChess is a variation of the TicTacToe which includes chess pieces instead of crosses and circles. It's played by 2 players on a 4x4 board, each player has four pieces including a pawn, a knight, a bishop and a rook. Each player play successively by either moving a piece, eating a enemy piece or placing a dead piece on an empty square of the board. A party is over when one of the player aligned all its pieces in a horizontal, vertical or diagonal line.

How to play

You'll need to have rust installed.

Clone this repos:

git clone https://github.com/charlyalizadeh/TicTacChess

Then you only need to generate the executable

cargo run --release

You can launch the game after the first time thanks to the following command (note: you have to execute this command from the main directory):

./target/release/tictacchess

Wiki

Credits

About

An implementation of the minmax algorithm playing tictacchess.


Languages

Language:Rust 100.0%