[gnome-games/sudoku-tube] Mark TODO
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/sudoku-tube] Mark TODO
- Date: Mon, 31 Aug 2009 13:55:29 +0000 (UTC)
commit 18e726109c8aea4cb09c3e2741d402cab56ae1e1
Author: Zhang Sen <zh jesse gmail com>
Date: Thu Aug 20 12:00:37 2009 +0800
Mark TODO
gnome-sudoku/src/lib/main.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 8441029..32a81f9 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -96,7 +96,8 @@ class SudokuGame(gconf_wrapper.GConfWrapper):
game_type = game_selector.NewOrSavedGameSelector.SAVED_GAME
if not game:
- game = self._generate_new_puzzle()
+ # TODO fix the game selector
+ game = self._generate_new_puzzle("easy")
game_type = game_selector.NewOrSavedGameSelector.NEW_GAME
if game:
@@ -117,7 +118,7 @@ class SudokuGame(gconf_wrapper.GConfWrapper):
logger.debug("no saved game found")
return None
- def _generate_new_puzzle(self, level="easy"):
+ def _generate_new_puzzle(self, level):
# new_puzzle is a list, with the form of (<puzzle>, <difficulty>)
puzzles = self.sudoku_maker.get_puzzles(1, [level])
if puzzles:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]