-
Notifications
You must be signed in to change notification settings - Fork 1
/
blockly.json
42 lines (42 loc) · 1.86 KB
/
blockly.json
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
{
"INIT_INFO": [
["ai_name", "name of ai", "AI編號"]
],
"GAME_STATUS": [
["GAME_ALIVE", "alive", "存活"],
["GAME_PASS", "pass", "通關"],
["GAME_OVER", "over", "失敗"]
],
"SCENE_INFO": [
["scene_info['frame']", "# frame", "# 幀數"],
["scene_info['status']", "game status", "遊戲狀態"],
["scene_info['ball'][0]", "x coordinate of ball", "球的 x 座標"],
["scene_info['ball'][1]", "y coordinate of ball", "球的 y 座標"],
["scene_info['ball_served']", "the state of ball is served", "發球狀態"],
["scene_info['platform'][0]", "x coordinate of platform", "平台的 x 座標"],
["scene_info['platform'][1]", "y coordinate of platform", "平台的 y 座標"],
["scene_info['bricks']", "list of brick positions", "磚塊的位置清單"],
["scene_info['hard_bricks']", "list of hard brick positions", "堅硬磚塊的位置清單"],
["scene_info", "dictionary of all information", "包含所有資訊的字典"]
],
"CONSTANT": [
[0, "left boundary", "左邊界"],
[200, "right boundary", "右邊界"],
[0, "top boundary", "上邊界"],
[500, "bottom boundary", "下邊界"],
[40, "platform width", "平台寬度"],
[8, "platform height", "平台高度"],
[400, "y coordinate of platform", "平台y座標"],
[25, "brick width", "磚塊寬度"],
[10, "brick height", "磚塊高度"],
[11, "ball width", "球的邊長"]
],
"ACTION": [
["SERVE_TO_LEFT", "serving left", "向左發球"],
["SERVE_TO_RIGHT", "serving right", "向右發球"],
["MOVE_LEFT", "moving left", "向左移動"],
["MOVE_RIGHT", "moving right", "向右移動"],
["NONE", "doing nothing", "不動作"],
["RESET", "reset", "重置"]
]
}