Ludii Forum
TriGo and HexGo - Go played on a hexagonal board - 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: TriGo and HexGo - Go played on a hexagonal board (/showthread.php?tid=702)



TriGo and HexGo - Go played on a hexagonal board - happyRabbit - 09-03-2021

Hi! This is Go on a hexgonal board. Working as far as tested. I find it very interesting. There is lots of info about this via Google: https://www.google.com/search?q=hexagonal+go

This is a fork of Go.lud by Eric Piette from your site, with a board from the game Claustro by Dale W. Walton.

Thank you very much if you have any hints.

Please include this so I can play it against other players on the server Smile. Thank you!

PS: I deleted an old thread with the same name because the version there was not relevant any more.


RE: HexGo - Go played on a hexagonal board - happyRabbit - 09-04-2021

I would love to also support "Trigo". For that the first player is allowed to play one stone, and from then on each player is allowed to place two stones. Do you have any hints how to implement that? Thank you!
http://www.iggamecenter.com/info/en/trigo.html


RE: HexGo - Go played on a hexagonal board - Michael - 09-04-2021

(09-04-2021, 03:56 PM)happyRabbit Wrote: I would love to also support "Trigo". For that the first player is allowed to play one stone, and from then on each player is allowed to place two stones. Do you have any hints how to implement that? Thank you!
http://www.iggamecenter.com/info/en/trigo.html
Maybe this can help. It's a very simple and generic way of implementing that protocol. I don't know the particulars of TriGo, but if all you want to do is to make players move twice after the very first placement, this simple solution works.


RE: TriGo and HexGo - Go played on a hexagonal board - happyRabbit - 09-05-2021

Thanks Michael!

I tried:
(then
(set NextPlayer (player (- 2 (% (% (% (+ 1 (* 2 (count Moves))) 8) 3) 2))))
)

But whereever I have put it, I get "Unexpected syntax".


RE: TriGo and HexGo - Go played on a hexagonal board - Michael - 09-05-2021

It should be the (then)-parameter of the main ludeme inside (play). In most cases.


RE: TriGo and HexGo - Go played on a hexagonal board - happyRabbit - 09-05-2021

The syntax works at the end of the "do" ludeme, BUT it doesn't work for Trigo, because the checking for liberties to remove surrounded pieces and illegal move checking must only be done after the second stone.


RE: TriGo and HexGo - Go played on a hexagonal board - Michael - 09-05-2021

(09-05-2021, 08:44 AM)happyRabbit Wrote: The syntax works at the end of the "do" ludeme, BUT it doesn't work for Trigo, because the checking for liberties to remove surrounded pieces and illegal move checking must only be done after the second stone.
Then it sounds like this syntax is more appropriate:
Code:
(then
    (if
        (= 1 (% (+ 1 (count Moves)) 2))
        (moveAgain)
        [your liberties check]
    )
)
It will either let you move again or else do the liberties check.


RE: TriGo and HexGo - Go played on a hexagonal board - happyRabbit - 09-05-2021

Thank you for your help! I tried but failed. But I have to drop the ball here, because this is too much to learn and I have too little time. Sorry.


RE: TriGo and HexGo - Go played on a hexagonal board - Eric Piette - 09-07-2021

Hi,

Thanks for your submission :)
Your game is going to be added to the next release.

Regards,
Eric