public Move(int from, int to, TypeOfMove moveType, TypeOfPromotion promotion = TypeOfPromotion.NoPromotion) { From = from; To = to; Type = moveType; Promotion = promotion; }
/// <summary> /// Двигай =) /// </summary> public void Move(TypeOfMove type) { switch (type) { case TypeOfMove.TenTimes: for (int i = 0; i < Iteration; i++) { if (i == rnd.Next(0, Iteration)) { eJumpE(); } else { Console.Write("Move "); } } break; case TypeOfMove.ToFifeJump: for (int i = 0, j = 0; j < Count; i++) { if (i == rnd.Next(0, Iteration)) { eJumpE(); j++; } else { Console.Write("Move "); } // захист від зациклення if (i == Iteration - 1) { i = 0; } } break; } }
public NowMove(Player player, TypeOfMove expectedTypeOfMove) { Player = player; ExpectedTypeOfMove = expectedTypeOfMove; }