private void createGame() { GameDropdownItem item = (GameDropdownItem) gameDropdown.getSelectedItem(); if (item == null) return; IGame game = item.game; Board board = game.getBoard(); Solver solver = new Solver(board, game.getChecker()); IJGUI.Create(board, solver); }
@Override public String toString() { return game.getTitle(); }