예제 #1
0
 private static void tryInsertToken(string column)
 {
     if (grid.checkInt(column))
     {
         grid.insertToken(Int32.Parse(column) - 1, currentPlayer.colour);
         if (grid.finish == false && grid.checkColumn(Int32.Parse(column) - 1))
         {
             TooglePlayer();
         }
     }
     else
     {
         printer.ClearScreen();
         grid.showMessage(Grid.States.InvalidCharacter);
         grid.drawGrid();
     }
 }