Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
def print_board(tablero):
|
| 2 |
output = ""
|
| 3 |
for i in range(len(tablero)):
|
| 4 |
-
if i % 3 == 0 and i != 0:
|
| 5 |
-
|
| 6 |
|
| 7 |
for j in range(len(tablero[0])):
|
| 8 |
-
if j % 3 == 0 and j != 0:
|
| 9 |
-
|
| 10 |
|
| 11 |
if j == 8:
|
| 12 |
output += str(tablero[i][j]) + "\n"
|
| 13 |
else:
|
| 14 |
-
output += str(tablero[i][j]) + "
|
| 15 |
|
| 16 |
return output
|
| 17 |
|
|
|
|
| 1 |
def print_board(tablero):
|
| 2 |
output = ""
|
| 3 |
for i in range(len(tablero)):
|
| 4 |
+
#if i % 3 == 0 and i != 0:
|
| 5 |
+
# output += "------+-------+------\n"
|
| 6 |
|
| 7 |
for j in range(len(tablero[0])):
|
| 8 |
+
#if j % 3 == 0 and j != 0:
|
| 9 |
+
# output += "| "
|
| 10 |
|
| 11 |
if j == 8:
|
| 12 |
output += str(tablero[i][j]) + "\n"
|
| 13 |
else:
|
| 14 |
+
output += str(tablero[i][j]) + " "
|
| 15 |
|
| 16 |
return output
|
| 17 |
|