Exemplo n.º 1
0
 public void Print()
 {
     for (int y = 1; y <= YSize; y++)
     {
         for (int x = 1; x <= XSize; x++)
         {
             Footmark fm = this[x, y] as Footmark;
             if (fm != null)
             {
                 Console.Write("{0,2} ", fm.Number);
             }
             else
             {
                 Console.Write("{0}  ", this[x, y] == Piece.Knight ? "K" : " ");
             }
         }
         Console.WriteLine("");
     }
     Console.WriteLine();
 }
Exemplo n.º 2
0
 // 移動させる
 public void Jump(int place)
 {
     this[place] = new Footmark(++_count);
     _nowPlace   = place;
 }