jonthysell / Mzinga

Open-source software to play the board game Hive.
MIT License
82 stars 9 forks source link

Possible bug in the rules implementation #113

Closed vovanz closed 2 years ago

vovanz commented 2 years ago

I was watching through MzingaViewer two MzingaEngines and I saw it making a move that I think is against the rules.

I'm attaching screenshots of the position before the move, after the move and game log. before_illegal_move after_illegal_move

Here is the game log, I'm taking about move number 38: 38. bP bQ\

I think that it violates Freedom to Move rule as described in the official rules.

freedom_to_move

While official Pillbug rules do not clearly state that Pillbug can't violate Freedom to Move rule (they only mention Freedom to Move in the context of the special ability) they also do not say that Pillbug itself can violate this rule so I assume that this move is illegal.

pillbug_rules

vovanz commented 2 years ago

I just realized that this move is perfectly fine, because Mosquito inherits Pillbug's special ability and is able to move it.

Sorry :)