Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utility.py
diff options
context:
space:
mode:
Diffstat (limited to 'utility.py')
-rwxr-xr-xutility.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/utility.py b/utility.py
index baf42c5..b1d98a1 100755
--- a/utility.py
+++ b/utility.py
@@ -9,19 +9,18 @@ def get_unicode(data):
if not isinstance(data, unicode):
return unicode(data, "utf-8")
return data
+
def create_board(size):
board = []
- # To do hacer que sea dinamico
- if size == constants.DEFAULT_BOARD_SIZE:
- for i in range(0, size):
- board.append(['','','','','','','','','','','','','','',''])
-
- elif size == 9:
- for i in range(0, size):
- board.append(['','','','','','','','',''])
+ for i in range(0, size):
+ row = []
+ for j in range(0, size):
+ row.append(' ')
+ board.append(row)
return board
+
def get_letters_from_file(lenguage = constants.DEFAULT_LENGUAGE):
letters = {}