changeset 6 | af9b2b929b03 |
parent 3 | 40d225cf9c43 |
child 7 | 428a194e3e59 |
1.1 --- a/Source/GoGame.m Tue Mar 11 09:21:53 2008 -0700 1.2 +++ b/Source/GoGame.m Wed Mar 12 15:51:32 2008 -0700 1.3 @@ -106,6 +106,8 @@ 1.4 1.5 - (BOOL) canBit: (Bit*)bit moveFrom: (id<BitHolder>)srcHolder to: (id<BitHolder>)dstHolder 1.6 { 1.7 + if( ! [dstHolder isKindOfClass: [Square class]] ) 1.8 + return NO; 1.9 Square *dst=(Square*)dstHolder; 1.10 1.11 // There should be a check here for a "ko" (repeated position) ... exercise for the reader!