/// <summary> /// Initializes a new instance of the <see cref="Board" /> class /// </summary> /// <param name="io">Input/Output component</param> /// <param name="width">Board width</param> /// <param name="height">Board height</param> /// <param name="boardStile">Board stile provider component</param> public Board(IInputOutput io, int width, int height, string boardStile) { this.io = io; try { io.SetWindowSize(width + 1, height + 10); } catch (Exception e) { throw new Exception(e.Message); } this.boardSizeX = width; this.boardSizeY = height; this.boardStile = boardStile; }