Esempio n. 1
0
 private void StartMove(Coord source, Coord target)
 {
     _moves.Add(new Movement(source, target));
 }
Esempio n. 2
0
 public Movement(Coord source, Coord target)
 {
     Source = source;
     Target = target;
 }
Esempio n. 3
0
 private bool Move(Coord source, Coord target)
 {
     var result = Move(_newGrid[source.X][source.Y], _newGrid[target.X][target.Y]);
     if (result != 0)
     {
         _newGrid[target.X][target.Y] = result;
         _newGrid[source.X][source.Y] = 0;
         StartMove(source, target);
         return true;
     }
     return false;
 }