Ejemplo n.º 1
0
	void Start () {
		if (gameModeIndexSet) {
			gameMode = (GameMode)gameModeIndex;
		}
		if (gameMode == GameMode.Regular) {
			GetComponent<Clock>().StartClock();
		}

		Board.SetPositionFromFen (Definitions.gameStartFen,true);

		ZobristKey.Init ();
		Evaluation.Init ();
		if (regenerateOpeningBook) {
			OpeningBookGenerator.GenerateBook ();
		}
		if (useOpeningBook) {
			OpeningBookReader.Init ();
		}

		playerManager = GetComponent<MoveManager> ();

		playerManager.CreatePlayers ();

		Board.SetPositionFromFen (Definitions.gameStartFen,true);

	}
Ejemplo n.º 2
0
    void Start()
    {
        if (gameModeIndexSet)
        {
            gameMode = (GameMode)gameModeIndex;
        }
        if (gameMode == GameMode.Regular)
        {
            // GetComponent<Clock>().StartClock();
        }

        Board.SetPositionFromFen(Definitions.gameStartFen, true);

        ZobristKey.Init();
        Evaluation.Init();
        if (regenerateOpeningBook)
        {
            OpeningBookGenerator.GenerateBook();
        }
        if (useOpeningBook)
        {
            OpeningBookReader.Init();
        }

        playerManager = GetComponent <MoveManager> ();

        playerManager.CreatePlayers();

        Board.SetPositionFromFen(Definitions.gameStartFen, true);
    }