Example #1
0
 public Bot()
 {
     Version        = "0.2.1";
     PlayerDatabase = new PlayerDatabase("player.db");
     Items          = new ItemList();
     Words          = new WordList();
     DotPuzzles     = new PuzzleList();
     AllMetals      = new Metals();
 }
Example #2
0
    public void Start()
    {
        Leaf root = new Leaf(0, 0, gridSize, gridSize);

        dungeon    = new int[gridSize, gridSize];
        RoomLayout = new Room[7, 7];
        Debug.Log(dungeon.GetLength(0) + "_" + dungeon.GetLength(1));
        leafList.Add(root);
        puzzleList = GameObject.FindObjectOfType <PuzzleList>();
        StartCoroutine(BuildLeafTree());
    }
        public void NumberOfPuzzlesGeneratedInABatchAreCorrect()
        {
            IEnumerable <Puzzle <int> > PuzzleList;

            numberPuzzleBatchBuilder.BuildPuzzleBatch();
            PuzzleList = numberPuzzleBatchBuilder.GetPuzzleBatch();

            if (!(PuzzleList.ToList().Count() == 10))
            {
                Assert.Fail();
            }
        }
Example #4
0
 public void Awake()
 {
     puzzleList = this;
 }
Example #5
-2
 public void Start()
 {
     Leaf root = new Leaf(0,0,gridSize,gridSize);
     dungeon = new int[gridSize,gridSize];
     RoomLayout = new Room[7, 7];
     Debug.Log(dungeon.GetLength(0) +"_"+dungeon.GetLength(1) );
     leafList.Add(root);
     puzzleList = GameObject.FindObjectOfType<PuzzleList>();
     StartCoroutine(BuildLeafTree());
 }