HexChess is a hexagonal chess program powered with the Godot Engine. It includes several variants of hex chess (Glinski, McCooey, Hexofen), basic AI and peer-to-peer multiplayer.
To manipulate the source code you'll need Godot 3.5 .NET version. The code is licensed under the MIT license, feel free to use it in your projects. However, there are additional restrictions on some visual assets; check subdirectories for more info.
Starting from version 2.0, the app includes a portion of code written in Rust. If you want to compile it, refer to the Rust/Godot setup instructions here.
As soon as you have your setup ready, open a project directory and start the compilation with 'cargo build' command.
After the compilation is finished, move the resulting library file to the 'godot' subdirectory. For example, on Windows, when using an optimized build, use this command:
Move-Item "target/release/hex_chess.dll" -Destination "godot/hex_chess.dll"
On Linux, use this command:
mv target/release/libhex_chess.so godot
After moving the library, start the game normally via the Godot Engine. If you don't want to compile the Rust portion of the code and just want to modify the GDScript part of the project, you can use a precompiled library file from the latest release by placing it in the 'godot' subdirectory.
![](https://private-user-images.githubusercontent.com/111509227/271996158-1a752643-764c-4202-ade2-9de20d5dcd43.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1Nzg5NTcsIm5iZiI6MTcyMjU3ODY1NywicGF0aCI6Ii8xMTE1MDkyMjcvMjcxOTk2MTU4LTFhNzUyNjQzLTc2NGMtNDIwMi1hZGUyLTlkZTIwZDVkY2Q0My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwMlQwNjA0MTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMjUwYjk2YTkwNTMwMjRkY2I5MmE0NjQxYjE1MDk2MzE0OD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