-
Notifications
You must be signed in to change notification settings - Fork 0
/
blockly.json
53 lines (53 loc) · 2.55 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
43
44
45
46
47
48
49
50
51
52
53
{
"INIT_INFO": [
["ai_name", "name of ai", "AI編號"]
],
"PLAYER_STATUS": [
["1P", "1P", "1P"],
["2P", "2P", "2P"]
],
"GAME_STATUS": [
["GAME_ALIVE", "alive", "存活"],
["GAME_1P_WIN", "1P wins", "1P 勝利"],
["GAME_2P_WIN", "2P wins", "2P 勝利"],
["GAME_DRAW", "draw", "平手"]
],
"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_speed'][0]", "ball velocity along x-axis", "球的 x 方向速度"],
["scene_info['ball_speed'][1]", "ball velocity along y-axis", "球的 y 方向速度"],
["scene_info['ball_served']", "the state of ball is served", "發球狀態"],
["scene_info['serving_side']", "serving side", "發球方"],
["scene_info['platform_1P'][0]", "x coordinate of 1P platform", "1P 平台的 x 座標"],
["scene_info['platform_1P'][1]", "y coordinate of 1P platform", "1P 平台的 y 座標"],
["scene_info['platform_2P'][0]", "x coordinate of 2P platform", "2P 平台的 x 座標"],
["scene_info['platform_2P'][1]", "y coordinate of 2P platform", "2P 平台的 y 座標"],
["scene_info['blocker'][0]", "x coordinate of blocker position", "障礙物的 x 座標"],
["scene_info['blocker'][1]", "y coordinate of blocker position", "障礙物的 y 座標"],
["scene_info", "dictionary of all information", "包含所有資訊的字典"]
],
"CONSTANT": [
[0, "left boundary", "左邊界"],
[200, "right boundary", "右邊界"],
[0, "top boundary", "上邊界"],
[500, "bottom boundary", "下邊界"],
[40, "platform width", "平台寬度"],
[10, "platform height", "平台高度"],
[30, "blocker width", "障礙物寬度"],
[20, "blocker height", "障礙物高度"],
[420, "blocker height", "1P 平台的 y 座標"],
[70, "blocker height", "2P 平台的 y 座標"],
[240, "blocker height", "障礙物的 y 座標"]
],
"ACTION": [
["SERVE_TO_LEFT", "serving left", "向左發球"],
["SERVE_TO_RIGHT", "serving right", "向右發球"],
["MOVE_LEFT", "moving left", "向左移動"],
["MOVE_RIGHT", "moving right", "向右移動"],
["NONE", "doing nothing", "不動作"],
["RESET", "reset", "重置"]
]
}