Hunt the Wumpus: Difference between revisions
fix set player to room if the room is empty if found bat
(add swift version of hunt the wumpus) |
(fix set player to room if the room is empty if found bat) |
||
Line 5,098:
if isEmpty(r: room!) {
print("A bat has transported you to a random empty room.")
player = room
break
}
Line 5,131 ⟶ 5,132:
}
game()
</lang>
|