Hunt The Wumpus/Javascript: Difference between revisions
Content added Content deleted
m (→Code: removed apostrophe from "don't" in the help text because it was affecting the syntax hi-lighting of the entire code) |
(fix formatting) |
||
Line 3: | Line 3: | ||
==Code== |
==Code== |
||
< |
<syntaxhighlight lang="javascript"> |
||
const _ = require('lodash'), |
const _ = require('lodash'), |
||
Line 279: | Line 278: | ||
// description of the room |
// description of the room |
||
process.stdin.emit('data', first(world.player.room)); |
process.stdin.emit('data', first(world.player.room)); |
||
</syntaxhighlight> |
|||
</lang> |