回答編集履歴
6
コード修正
answer
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
// 初期化
|
57
57
|
function init(max) {
|
58
58
|
console.log(message.get("opening"));
|
59
|
-
return new World(Infinity, Math.floor(Math.random() * max) + 1, "");
|
59
|
+
return new World(Infinity, Math.floor(Math.random() * max) + 1, "");
|
60
60
|
}
|
61
61
|
|
62
62
|
// 読み込み部(Read)
|
5
コードを修正
answer
CHANGED
@@ -59,7 +59,7 @@
|
|
59
59
|
return new World(Infinity, Math.floor(Math.random() * max) + 1, "");;
|
60
60
|
}
|
61
61
|
|
62
|
-
//
|
62
|
+
// 読み込み部(Read)
|
63
63
|
const readline = require('readline');
|
64
64
|
|
65
65
|
function read(prompt) {
|
4
コード修正
answer
CHANGED
@@ -109,7 +109,6 @@
|
|
109
109
|
console.log(ex.message);
|
110
110
|
env;
|
111
111
|
} else {
|
112
|
-
console.error("Unexpected error:", ex.message);
|
113
112
|
env;
|
114
113
|
}
|
115
114
|
}
|
3
コード修正
answer
CHANGED
@@ -55,9 +55,8 @@
|
|
55
55
|
|
56
56
|
// 初期化
|
57
57
|
function init(max) {
|
58
|
-
const w = new World(Infinity, Math.floor(Math.random() * max) + 1, "");
|
59
58
|
console.log(message.get("opening"));
|
60
|
-
return
|
59
|
+
return new World(Infinity, Math.floor(Math.random() * max) + 1, "");;
|
61
60
|
}
|
62
61
|
|
63
62
|
// Read(読み込み部)
|
2
コードを若干修正
answer
CHANGED
@@ -107,6 +107,7 @@
|
|
107
107
|
console.log(ex.message);
|
108
108
|
process.exit(0);
|
109
109
|
} else if (ex.message === message.get("failure")) {
|
110
|
+
console.log(ex.message);
|
110
111
|
env;
|
111
112
|
} else {
|
112
113
|
console.error("Unexpected error:", ex.message);
|
1
誤字修正
answer
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
一方、スタンドアロン処理系は、大まかにはブラウザに含まれているJavaScriptエンジンを取り出している「だけ」なんだけど、拡張がある。
|
14
14
|
それこそ直接端末(DOS窓等)から入力を受け付けて、そこに出力出来る、とかね。
|
15
|
-
要は「フツーのプログラミング言語処理系」みたいなるように
|
15
|
+
要は「フツーのプログラミング言語処理系」みたいになるように改造が入ってたり拡張してたりするんだ。
|
16
16
|
そしてその辺りは「ECMAScriptの仕様範疇外」って事になる。
|
17
17
|
|
18
18
|

|