learn
This commit is contained in:
@@ -56,7 +56,7 @@ class Hanoi(Feladat):
|
||||
|
||||
return lepesek
|
||||
|
||||
K=Hanoi(8) # 2^n - 1
|
||||
K=Hanoi(13) # 2^n - 1
|
||||
|
||||
print(len(szélességi_gráfkeresés(K).megoldás()))
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ class Hanoi(Feladat):
|
||||
|
||||
return lepesek
|
||||
|
||||
h = Hanoi(8)
|
||||
h = Hanoi(15)
|
||||
#print(h.result('123', Act(0,'2')))
|
||||
#print(h.rákövetkező('321'))
|
||||
|
||||
@@ -72,4 +72,4 @@ while h.célteszt(h.kezdő)==False:
|
||||
h.mod(lepes)
|
||||
#print(lepes)
|
||||
k+=1
|
||||
print(k)
|
||||
print(k)
|
||||
|
||||
Reference in New Issue
Block a user