Connect-Four Game AI
Input Text Format
Each Input is like
....... ....... ....... ...o... ...ox..
x are the colored discs for players.
. is for empty.
The height and width can be any size if
The following is also ok, and this is the minimal size.
.... .... .... .o..
This AI works with
cargo run --release -- --next x < ./sample.input
--next specifies which (
x) is the next player.
Best move for the
--next player will be outputed.
Graphical User Interface
server.py is written in Python3 and launch a server for UI.
pip3 install fastapi uvicorn uvicorn server:app --port 8080 $(open-browser) http://localhost:8080