aboutsummaryrefslogtreecommitdiffstats
path: root/solver.py
diff options
context:
space:
mode:
Diffstat (limited to 'solver.py')
-rwxr-xr-xsolver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/solver.py b/solver.py
index b64e863..d660e53 100755
--- a/solver.py
+++ b/solver.py
@@ -257,7 +257,7 @@ class KanaGrid:
def __repr__(self):
self.update_score()
return (
- ('KanaGrid (cnt: %d, score:%d): \n ' % (self.action_count, self.score))
+ ('KanaGrid (cnt: %d, score: %d): \n ' % (self.action_count, self.score))
+ '\n '.join(repr_grid(self.grid, (self.width, self.height)).splitlines())
)
@@ -361,9 +361,9 @@ def main():
kanagrid = KanaGrid.load(input_dict)
target_score = input_dict['target_score']
max_actions = input_dict['max_actions']
- print('Size %dx%d' % (kanagrid.width, kanagrid.height))
- print('Target score %d' % target_score)
- print('Max actions %d' % max_actions)
+ print('Size: %dx%d' % (kanagrid.width, kanagrid.height))
+ print('Target score: %d' % target_score)
+ print('Max actions: %d' % max_actions)
print('Initial grid:')
print(kanagrid)