q5Go icon indicating copy to clipboard operation
q5Go copied to clipboard

Klein bottle support

Open MarkTakken opened this issue 3 years ago • 2 comments

Hi. I greatly appreciate your Go editor and its unique support for both GTP engines and toroidal Go. Adding support for the Klein bottle (where one pair of opposite edges connects in opposite orientation and the other pair connects in the same orientation) would be very helpful for me, as it would help me play this variant with an adapted version of KataGo. Could you please add this support or point me to what code I would need to change in order to accomplish this? Thank you!

MarkTakken avatar Aug 03 '21 02:08 MarkTakken

The main area you'd need to change is goboard.cc. That handles all the logic of playing moves and such. Maybe change the torus_h and torus_v bools to tristate enums. Then, flood_step is the main point where connectivity is handled. Search for any other uses of the torus bools to see if anything else needs adapting.

bernds avatar Aug 03 '21 22:08 bernds

Closing as I'm not planning to work on this myself.

bernds avatar Jul 15 '22 16:07 bernds