Hunt The Wumpus/Javascript: Difference between revisions
fix formatting
Pistacchio (talk | contribs) No edit summary |
(fix formatting) |
||
(One intermediate revision by one other user not shown) | |||
Line 3:
==Code==
<
const _ = require('lodash'),
Line 17 ⟶ 16:
The wumpus lives in a cave of 20 rooms. Each room has 3 tunnels to
other rooms. (Look at a dodecahedron to see how this works. If you
Hazards:
Bottomless pits - Two rooms have bottomless pits in them. If you go
Line 279 ⟶ 278:
// description of the room
process.stdin.emit('data', first(world.player.room));
</syntaxhighlight>
|