Update tower.py

easier debugging with fewer disks
This commit is contained in:
ericries
2022-01-01 17:26:04 -08:00
committed by GitHub
parent fb7b7ffe0e
commit 437b4c2920

View File

@@ -60,7 +60,10 @@ GOOD LUCK!
class Game:
def __init__(self):
self.__sizes = [3, 5, 7] # ,9,11,13,15]
# use fewer sizes to make debugging easier
# self.__sizes = [3, 5, 7] # ,9,11,13,15]
self.__sizes = [3, 5, 7, 9, 11, 13, 15]
self.__sizes.sort()
self.__towers = []
@@ -156,4 +159,4 @@ while True:
print("'YES' OR 'NO' PLEASE\n")
elif game.moves() > 128:
print("SORRY, BUT I HAVE ORDERS TO STOP IF YOU MAKE MORE THAN 128 MOVES.")
sys.exit(0)
sys.exit(0)