public Game(int heigth, int width) { BoardDataDto boardData = new BoardDataDto(); boardData.Height = heigth; boardData.Width = width; //boardData.Ladders = ladders; //boardData.Snakes = snakes; _board = new Board(boardData); _players = new List <Player>(); }
List <ShortCut> _shortCuts;// this data structure is not performant in term of time and space complexity public Board(BoardDataDto boardData) { Height = boardData.Height; Width = boardData.Width; _shortCuts = new List <ShortCut>(); }