Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!-- spacer -->
<script src="http://output.jsbin.com/juneqo.js"></script>
<!-- Player constructor -->
<script src="http://output.jsbin.com/nubijex.js"></script>
<!-- Place constructor -->
<script src="http://output.jsbin.com/ruviso.js"></script>
<!-- map data (Kitchen example with challenge) -->
<script src="http://output.jsbin.com/jayici.js"></script>
<!-- map builder -->
<script src="http://output.jsbin.com/paqihi.js"></script>
<!-- Game initialization -->
<script src="http://output.jsbin.com/mogano.js"></script>
 
/* Get Programming with JavaScript
 * Listing 14.08
 * Using the new map builder
 */
var game = theCrypt.getGame();
/* Further Adventures
 *
 * 1) Play the game, Using the public methods:
 *
 *    > game.get()
 *    > game.go("south")
 *
 * 2) Try entering an invalid direction.
 *
 *    > game.go("snarf");
 *
 */
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
jrlarsenpro
0viewers