warriorjs-ja
Version:
Game written in JavaScript for learning JavaScript and artificial intelligence
43 lines (40 loc) • 1.25 kB
JSON
{
"description": "暗すぎて何も見えないが、スライムが近くにいる気配がします。",
"tip": "あなたの前に何もないかどうかを確かめるには`warrior.feel().isEmpty()`を使ってください。戦うには`warrior.attack()`を使ってください。ターンごとに実行できるアクションは一つのみということを忘れないでください。",
"clue": "Add an if/else condition using `warrior.feel().isEmpty() to decide whether to `warrior.attack()` or `warrior.walk()`.",
"timeBonus": 20,
"aceScore": 26,
"floor": {
"size": {
"width": 8,
"height": 1
},
"stairs": {
"x": 7,
"y": 0
},
"warrior": {
"x": 0,
"y": 0,
"facing": "east",
"abilities": [
{
"name": "attack",
"args": []
},
{
"name": "feel",
"args": []
}
]
},
"units": [
{
"type": "sludge",
"x": 4,
"y": 0,
"facing": "west"
}
]
}
}