Ejemplo n.º 1
0
 public void Print()
 {
     Console.WriteLine("XLength: " + _xLength + ", YLength: " + _yLength);
     Console.WriteLine("UserPiece :" + _userPiece);
     foreach (var aiPiece in _aiManager.GetAiPieces())
     {
         Console.WriteLine("AIPiece :" + aiPiece);
     }
     for (var y = 0; y < _xLength; y++)
     {
         for (var x = 0; x < _yLength; x++)
         {
             var tile = _tiles.GetValue(x, y);
             Console.Write(tile + " ");
         }
         Console.WriteLine();
     }
 }
Ejemplo n.º 2
0
 public bool GetTileAvailability(int iX, int iY)
 {
     return(IndexInRange(iX, iY) && _grid.GetValue(iX, iY) == null);
 }