public void Init(object data) { board = generatorService.Generate_from_fen("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR"); foreach (var square in board) { ChessGrid.Add(square); } }
public void Init(object data) { this.board = generatorService.Generate(); foreach (var square in board) { ChessGrid.Add(square); } }