UNPKG

warriorjs-ja

Version:

Game written in JavaScript for learning JavaScript and artificial intelligence

45 lines (42 loc) 1.21 kB
{ "description": "You can feel the stairs right next to you, but are you sure you want to go up them right away?", "tip": "You'll get more points for clearing the level first. Use `warrior.feel().isStairs()` and `warrior.feel().isEmpty()` to determine where to go.", "clue": "If going towards a unit is the same direction as the stairs, try moving another empty direction until you can safely move toward the enemies.", "timeBonus": 45, "aceScore": 107, "floor": { "size": { "width": 5, "height": 2 }, "stairs": { "x": 1, "y": 1 }, "warrior": { "x": 0, "y": 1, "facing": "east" }, "units": [ { "type": "thickSludge", "x": 4, "y": 0, "facing": "west" }, { "type": "thickSludge", "x": 3, "y": 1, "facing": "north" }, { "type": "captive", "x": 4, "y": 1, "facing": "west" } ] } }