예제 #1
0
    public void Initialize()
    {
        var gameBoard = entityService.CreateGameBoard().gameBoard;

        for (int row = 0; row < gameBoard.rows; row++)
        {
            for (int column = 0; column < gameBoard.columns; column++)
            {
                if (randomService.Bool(0.1f))
                {
                    entityService.CreateBlocker(column, row);
                }
                else
                {
                    entityService.CreateRandomPiece(column, row);
                }
            }
        }
    }