diff -r 28392c9a969f -r 7c9ecb09a612 Source/HexchequerGame.m --- a/Source/HexchequerGame.m Mon Jul 14 21:00:15 2008 -0700 +++ b/Source/HexchequerGame.m Fri Jul 18 13:26:59 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