Esempio n. 1
0
        Board searchBoard; // Duplikat planszy dla szukania możliwości dla Ai

        void Start()
        {
            if (useClocks)
            {
                whiteClock.isTurnToMove = false;
                blackClock.isTurnToMove = false;
            }

            boardUI                = FindObjectOfType <BoardUI>();
            gameMoves              = new List <Move>();
            board                  = new Board();
            searchBoard            = new Board();
            aiSettings.diagnostics = new Search.SearchDiagnostics();

            NewGame(whitePlayerType, blackPlayerType);
        }
Esempio n. 2
0
 void Start()
 {
     activeArrows = new List <Transform> ();
     boardUI      = FindObjectOfType <BoardUI> ();
     cam          = Camera.main;
 }
Esempio n. 3
0
 public HumanPlayer(Board board)
 {
     boardUI    = Object.FindObjectOfType <BoardUI>();
     cam        = Camera.main;
     this.board = board;
 }