Beispiel #1
0
        public void NewTestScriptSimplePasses()
        {
            GameManagerTs Gm = new GameManagerTs();

            Assert.IsTrue(Gm.isBlacksTurn);
            Assert.IsTrue(Gm.changeTurn);
        }
Beispiel #2
0
        // Start the game
        public void Start()
        {
            // the player hits play game, or start whatever
            // code to initialize the game:
            // also the host is black, opponent is red
            Instance = this;

            //connect client
            //c = FindObjectOfType<Client>();
            //if (c != null) { playerBlack = c.isHost; }

            //set board up
            board = gameObject.GetComponent <GameBoardTs>();
            board.CreateBoard();
            board.placeInitialPieces();
            isBlacksTurn = true;
            changeTurn   = true;
        }