Esempio n. 1
0
 public bool Push(Step step)
 {
     if (this.StepList.Exists(s => s.Equals(step)))
     {
         return false;
     }
     this.StepList.Add(step);
     return true;
 }
Esempio n. 2
0
 protected bool Equals(Step other)
 {
     return this.Row == other.Row && this.Column == other.Column && this.Number == other.Number ;
 }
Esempio n. 3
0
 private static void SetNumber(Chessboard chessboard, Step step)
 {
     chessboard.GetCell(step.Row, step.Column).SetNumber(step.Number);
 }