Game CustomGame::createGame(int difficulty, int symmetry) { if (! createSKGraphObject()) { return Game(); } Puzzle* puzzle = new Puzzle(m_graph, true); puzzle->init(difficulty, symmetry); return Game(puzzle); }
Game CustomGame::startEmpty() { if (! createSKGraphObject()) { return Game(); } Puzzle* puzzle = new Puzzle(m_graph, false); puzzle->init(); return Game(puzzle); }
Game RoxdokuGame::createGame(int difficulty, int symmetry) { if(!m_graph) { m_graph = new SKGraph(m_order, TypeRoxdoku); m_graph->initRoxdoku(); } Puzzle* puzzle = new Puzzle(m_graph, true); puzzle->init(difficulty, symmetry); return Game(puzzle); }
Game RoxdokuGame::startEmpty() { if(!m_graph) { m_graph = new SKGraph(m_order, TypeRoxdoku); m_graph->initRoxdoku(); } Puzzle* puzzle = new Puzzle(m_graph, false); puzzle->init(); return Game(puzzle); }