回答編集履歴
1
LimitRangeの引数にカンマが抜けていた
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
x = LimitRange(x, 0, COL-1);
|
5
5
|
y = LimitRange(y, 0, ROW-1);
|
6
6
|
|
7
|
-
function LimitRange(value min, max) {
|
7
|
+
function LimitRange(value, min, max) {
|
8
8
|
if (value < min) { return min; }
|
9
9
|
if (value > max) { return max; }
|
10
10
|
return value;
|