forked from Sakitama/Sakitama.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Task_36.html
45 lines (45 loc) · 1.38 KB
/
Task_36.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>IFE JavaScript Task 36</title>
<link href="css/Task_36.css" rel="stylesheet">
</head>
<body>
<header>
<h1>
任务三十六:听指令的小方块(四)
</h1>
</header>
<div class="clearfix">
<ol id="list_top" class="list_top clearfix"></ol>
<ol id="list_left" class="list_left"></ol>
<section id="container" class="clearfix"></section>
<section class="inputArea">
<div class="clearfix">
<ol id="index">
<li>1</li>
</ol>
<label for="command"><textarea spellcheck="false" id="command" name="command"></textarea></label>
</div>
<button type="button" id="sure">执行</button>
<button type="button" id="refresh">清空</button>
<button type="button" id="random">随机造墙</button>
</section>
<p id="tips">
可输入指令序列,n代表数字,如果是0表示当前指令不会执行<br>
* GO<br>
* GO n<br>
* TUN LEF,TUN RIG,TUN BAC<br>
* TRA LEF n,TRA RIG n,TRA TOP n,TRA BOT n<br>
* TRA LEF,TRA RIG,TRA TOP,TRA BOT<br>
* MOV LEF n,MOV RIG n,MOV TOP n,MOV BOT n<br>
* MOV LEF,MOV RIG,MOV TOP,MOV BOT<br>
* BUILD,在小方块面对的方向造墙<br>
* BRU #ffffff/#fff,颜色值为16进制,3位或6位<br>
* MOV TO x,y,自动寻路,移动到指定坐标点(x, y)
</p>
</div>
<script type="text/javascript" src="js/task-36.js"></script>
</body>
</html>