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