Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Connect Four for the surena game engine and mirabel GUI

License

Notifications You must be signed in to change notification settings

vilaureu/mirabel_connect_four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Four for Mirabel/Surena

This is an implementation of the Connect Four game for the surena game engine and the mirabel game GUI.

Building

  1. Test the project:
    $ cargo test
    
  2. Create a release build:
    $ cargo build --release
    
  3. Locate the plugin at ./target/release/libmirabel_connect_four.so

Running

Using surena:

$ surena --game-plugin ./libmirabel_connect_four.so

Or by loading the plugin into mirabel using the plugin manager.

Options for the Game Plugin

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.

State Format Used by the Game Plugin

Imports state in the following format: XOOXXXO/XOOX//OXXO#x.

Each sequence of Xs and Os 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.

TODOs

  • Implement more optional API methods.
  • Implement an engine.

Libraries

This project uses the following libraries:

License

See the LICENSE file.

About

Connect Four for the surena game engine and mirabel GUI

Topics

Resources

License

Stars

Watchers

Forks