Source/TicTacToeGame.m
changeset 6 af9b2b929b03
parent 1 3eb7be1dd7b6
child 7 428a194e3e59
     1.1 --- a/Source/TicTacToeGame.m	Mon Mar 10 17:30:57 2008 -0700
     1.2 +++ b/Source/TicTacToeGame.m	Wed Mar 12 15:51:32 2008 -0700
     1.3 @@ -71,6 +71,14 @@
     1.4      return self;
     1.5  }
     1.6  
     1.7 +- (Bit*) bitToPlaceInHolder: (id<BitHolder>)holder
     1.8 +{
     1.9 +    if( holder.bit==nil && [holder isKindOfClass: [Square class]] )
    1.10 +        return _dispenser[self.currentPlayer.index].bit;
    1.11 +    else
    1.12 +        return nil;
    1.13 +}
    1.14 +
    1.15  - (void) nextPlayer
    1.16  {
    1.17      [super nextPlayer];