aboutsummaryrefslogtreecommitdiffstats
path: root/field.py
diff options
context:
space:
mode:
Diffstat (limited to 'field.py')
-rw-r--r--field.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/field.py b/field.py
index 5372c09..f7a2544 100644
--- a/field.py
+++ b/field.py
@@ -63,17 +63,23 @@ class Field:
63 63
64 def printField(self): 64 def printField(self):
65 i = 1 65 i = 1
66
66 print("\n\t", end="") 67 print("\n\t", end="")
67 for char in range(0,self.width): 68 for char in range(0,self.width):
68 print(chr(char+65) + " ", end="") 69 print(chr(char+65) + " ", end="")
69 print("\n") 70 print("\n")
71
70 for list in self.field: 72 for list in self.field:
71 print(str(i) + "\t", end = '') 73 print(str(i) + "\t", end = '')
72 for item in list: 74 for item in list:
73 print(item.printCell() + " ", end='') 75 print(item.printCell() + " ", end='')
74 print() 76 print("\t" + str(i))
75 i += 1 77 i += 1
76 return 78
79 print("\n\t", end="")
80 for char in range(0,self.width):
81 print(chr(char+65) + " ", end="")
82 print("\n")
77 83
78 def cleared(self): 84 def cleared(self):
79 safe = 0 85 safe = 0