Hunt The Wumpus/Java: Difference between revisions

m
no edit summary
m (→‎Code: well, we've finally got our enumset)
mNo edit summary
Line 182:
gameOver = true;
 
} else if (rand.nextInt(4) != 0) { // 75 %
hazards.get(wumpusRoom).remove(Hazard.Wumpus);
wumpusRoom = links[wumpusRoom][rand.nextInt(3)];
Line 189:
messages.add("You woke the Wumpus and he ate you");
gameOver = true;
 
} else {
messages.add("You woke the Wumpus and he moved");
Anonymous user