예제 #1
0
 public GameLogic(Board <GameBoardCell> i_Board, GamePlayers i_Players)
 {
     m_GameResult = null;
     r_Board      = i_Board;
     r_Players    = i_Players;
     r_State      = new GameState((uint)i_Players.Length, i_Board.Rows, i_Board.Cols);
     m_IndicesOfPlayersThatAreStillPlaying = new List <uint>((int)r_Players.Length);
     for (uint i = 0; i < r_Players.Length; i++)
     {
         m_IndicesOfPlayersThatAreStillPlaying.Add(i);
     }
 }
예제 #2
0
 public GameManager(uint i_BoardSize, GamePlayers i_Players)
 {
     r_Players = i_Players;
     r_Board   = new Board <GameBoardCell>(i_BoardSize, i_BoardSize);
     r_Logic   = new GameLogic(r_Board, r_Players);
 }