Hunt the Wumpus: Difference between revisions
fix force unwrapped room variable
(fix set player to room if the room is empty if found bat) |
(fix force unwrapped room variable) |
||
Line 5,098:
if isEmpty(r: room!) {
print("A bat has transported you to a random empty room.")
player = room!
break
}
|