Ludii Forum
Hexagonal Chess - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Submit Your Games (https://ludii.games/forums/forumdisplay.php?fid=23)
+--- Thread: Hexagonal Chess (/showthread.php?tid=84)



Hexagonal Chess - JayCoskey - 07-02-2020

I've attached a file called "Hexagonal Chess.lud" that I've written. I'd be happy for it to be added to the Ludii system. It supports several variants of Hexagonal Chess: Glinski, Brusky, De Vasa, McCooey, Mini Hexchess, Shafran, and Starchess. (I also added a variant called Empty Palace that I initially wrote to facilitate testing castling, then decided to keep in.)

To play a particular variant, the end-user selects a given ruleset. The rulesets are implemented using options. This seemed like the best way to support multiple variants. Though the system currently displays all the options in the app menu, not all combinations of Options are compatible. For example, one option could removes certain board spaces, while another might place pieces on those spaces. If there were a way to hide options from the options menu, then hiding these options could prevent some possible end-user confusion.

I've added underscores to some of my function/ludeme names, contrary to Ludii precedent. I've done this do call out that a function is one of a collection of related functions. For example, Castle_PreCheck, Castle_Base, and Castle_KingRook all belong to a "family" of Castle functions. The underscores aren't necessary, but they seemed to make the code easier to read.

There is one known bug, as noted in the code: following the 3-space initial Pawn move in Shafran chess, there is no en passant move available (see PawnStep_Multi). This is likely because I don't fully understand how Pending and Var work in Ludii.

I'm considering adding other variants, such as the 3-player Wellisch Chess.

I'd be happy to modify the copyright statement to an agreed-upon copyright, such as the MIT license.

Lastly, thanks for creating Ludii. It's a great system!


RE: Hexagonal Chess - cambolbro - 07-03-2020

Hi Jay,

Wow, nice work! That's a great implementation that we'll definitely add to the Ludii games collection, with you credited as author of the file.

Note that we've updated many of the ludemes and the resulting description language since v0.9.3, so we'll have to port this to the new format before adding it (we can add the en passant mechanism then).

We plan to release an interim version v0.9.4 today which will have the latest updates, then hopefully the official public release v1.0 in a week or two, at which point the language should be stable.

Thank you for your interest in Ludii!

Regards,
Cameron


RE: Hexagonal Chess - cambolbro - 07-03-2020

Hi,

Here is your Hexagonal Chess implementation updated for v0.9.4. 

Note that the coordinate system has changed so its behaviour is different now.

Before adding this game to our collection, any combinations of options that conflict with each other need to be removed (our automated tests check all option combinations). Can you reduce the options to those that work nicely with each other, or tell us which are the key options?

Regards,
Cameron


Glinski Chess for Ludii v0.9.4 - JayCoskey - 07-23-2020

Attached is a variant of hexagonal chess called Glinski Chess.

Since this forum doesn't accept files with a "def" suffix, I've attached the ai file as a text file.

Thanks,
Jay

Attached is an implementation of a variant of hexagonal chess called Brusky Chess.

Since this forum doesn't accept files with a "def" suffix, I've attached the ai file as a text file.

Thanks,
Jay

Attached is an implementation of a variant of hexagonal chess called De Vasa Chess.

Since this forum doesn't accept files with a "def" suffix, I've attached the ai file as a text file.

Thanks,
Jay

Attached is an implementation of a variant of hexagonal chess called McCooey Chess.

Since this forum doesn't accept files with a "def" suffix, I've attached the ai file as a text file.

Thanks,
Jay

Attached is an implementation of a variant of hexagonal chess called Mini Hexchess.

Since this forum doesn't accept files with a "def" suffix, I've attached the ai file as a text file.

Attached is an implementation of a variant of hexagonal chess called Starchess.

Since this forum doesn't accept files with a "def" suffix, I've attached the ai file as a text file.


Thanks,
Jay


RE: Hexagonal Chess - Eric Piette - 09-13-2020

Hi Jay,

I just adapted Starchess to the latest version and it will be also publish with the next release.

https://ludii.games/details.php?keyword=Starchess

I will try to adapt all the others for the next release too.

Regards,
Eric Piette


RE: Hexagonal Chess - Eric Piette - 09-13-2020

And here Mini Hexchess

https://ludii.games/details.php?keyword=Mini%20Hexchess

Regards,
Eric Piette


RE: Hexagonal Chess - Eric Piette - 09-13-2020

Here Glinski Chess

https://ludii.games/details.php?keyword=Glinski%20Chess


RE: Hexagonal Chess - Eric Piette - 09-13-2020

Here Brusky Chess

https://ludii.games/details.php?keyword=Brusky%20Chess

Regards,
Eric


RE: Hexagonal Chess - Eric Piette - 09-13-2020

Here McCooey Chess

https://ludii.games/details.php?keyword=McCooey%20Chess

Regards,
Eric


RE: Hexagonal Chess - Eric Piette - 09-13-2020

And the last one, De Vasa Chess

https://ludii.games/details.php?keyword=De%20Vasa%20Chess

Regards,
Eric Piette