Beispiel #1
0
 public static bool HasNotBeenDrawn()
 {
     if (TurnValidator.HasNotDrawnYet(NumberOfTurns))
     {
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 private static void CheckMoveIsValidAndUpdateGrid(Moves moveToAdd, Tuple <ushort, ushort> positionOnGrid)
 {
     if (TurnValidator.ThisMoveIsNotSameAsLastMove(_lastMove, moveToAdd) == MoveCategory.MoveIsValid && TurnValidator.CurrentMoveIsOverwrite(positionOnGrid) == MoveCategory.MoveIsValid)
     {
         GridUpdater.InsertIntoGrid(positionOnGrid, moveToAdd);
         _lastMove = moveToAdd;
         NumberOfTurns++;
     }
 }