Add return keyword to recursive call
This commit is contained in:
parent
aa59a64750
commit
d8e1649288
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def cross(rounds, bank1, boat, bank2):
|
|||
print(rounds, bank1, boat, bank2)
|
||||
rounds += 1
|
||||
|
||||
cross(rounds, bank1, boat, bank2)
|
||||
return cross(rounds, bank1, boat, bank2)
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Reference in a new issue