Exemplo n.º 1
0
 protected bool LineHasTwoCellsOfEvaluatedType(Board board, int[] line)
 {
     int cellCount = board.CountCellsOfTypeInLine(markToEvaluate, line);
     return cellCount == 2;
 }
Exemplo n.º 2
0
 protected bool LineHasOneEmptyCell(Board board, int[] line)
 {
     int cellCount = board.CountCellsOfTypeInLine(' ', line);
     return cellCount == 1;
 }