This is an implementation of the Connect Four game for the surena game engine and the mirabel game GUI.
- Test the project:
$ cargo test
- Create a release build:
$ cargo build --release
- Locate the plugin at
./target/release/libmirabel_connect_four.so
Using surena:
$ surena --game-plugin ./libmirabel_connect_four.so
Or by loading the plugin into mirabel using the plugin manager.
Imports options in the following format: 7x6@4
.
The option string consists of three separated numbers with the meaning of column count, row count, and minimum number of connected pieces for winning.
Imports state in the following format: XOOXXXO/XOOX//OXXO#x
.
Each sequence of X
s and O
s between /
s represents a column of stones from
bottom to top.
A hashtag-separated, lower-case letter at the end indicates who plays next.
An upper-case letter indicates that this player has won.
A dash indicates a draw.
- Implement more optional API methods.
- Implement an engine.
This project uses the following libraries:
- mirabel_rs under the MIT License
See the LICENSE
file.