diff -r 28392c9a969f -r 2eb229411d73 Source/HexchequerGame.m --- a/Source/HexchequerGame.m Mon Jul 14 21:00:15 2008 -0700 +++ b/Source/HexchequerGame.m Mon Jul 21 17:32:21 2008 -0700 @@ -127,5 +127,17 @@ [self endTurn]; } +- (BOOL) canOpponentMoveFrom: (GridCell*)src +{ + if( ! src.bit.unfriendly ) + return NO; + if( [super canOpponentMoveFrom: src] ) + return YES; + Hex *hex = (Hex*)src; + if( hex.bit.tag ) // remember, it's opponent's piece, so directions are reversed + if( hex.r.empty || (hex.r.bit.friendly && hex.r.r.empty) ) + return YES; + return hex.l.empty || (hex.l.bit.friendly && hex.l.l.empty); +} @end