Beispiel #1
0
 private void CheckGettingKing(IChecker checker)
 {
     if (checker is WhiteChecker)
     {
         if (checker.CurrentCoord.Row == 1)
         {
             checker.BecomeKing();
         }
     }
     else
     {
         if (checker.CurrentCoord.Row == 8)
         {
             checker.BecomeKing();
         }
     }
 }