richardjs / zoe

AI engine for the strategy game Hive
GNU General Public License v3.0
2 stars 0 forks source link

Chokes on gamestring #14

Closed richardjs closed 1 year ago

richardjs commented 1 year ago

This gamestring should be valid, but:

newgame Base;InProgress;White[12];wB1;bB1 wB1-;wQ \wB1;bQ bB1/;wG1 /wB1;bB2 bB1\;wA1 /wG1;bA1 bQ\;wG2 -wA1;bQ \bB1;wB2 /wG2;bA2 \bA1;wG3 wB2\;bA2 \wQ;wA2 wG3-;bB2 wB1\;wS1 wA2\;bA1 bB1\;wS2 wS1-;bA1 bB1-;wA3 wS2/;bA1 \wA3
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
invalidmove
ok
err illegal movestring in gamestring
Base;InProgress;White[6];wB1;bB1 wB1-;wQ \wB1;bQ bB1/;wG1 /wB1;bB2 bB1\;wA1 /wG1;bA1 bQ\;wG2 -wA1;bB2 wB1\
ok
richardjs commented 1 year ago

The problem can be (at least partly) reduced to throwing an error on this command:

newgame Base;InProgress;White[12];wB1;bB1 wB1-;wQ \wB1;bQ bB1/;wG1 /wB1;bB2 bB1\;wA1 /wG1;bA1 bQ\;wG2 -wA1;bQ \bB1