-
Notifications
You must be signed in to change notification settings - Fork 1
/
negotiation.json
130 lines (130 loc) · 3.15 KB
/
negotiation.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"agent": "project.tasks.negotiation.agent.agent.NegotiationAgent",
"env_handler": "project.agent.env_handler.EnvHandler",
"base_map": {
"__COMMENT__": "Available rules: blank / box / map_file",
"init_rule": "blank",
"__COMMENT__": "`size` must be set if `init_rule` is either `blank` or `box`",
"size": {
"x": 7,
"y": 7
},
"__COMMENT__": "`file_path` must be set if `init_rule` is `map_file`",
"file_path": "./config/map/lost_temple.map"
},
"random": {
"blocks": [
{
"repeat": 0
}
],
"resources": [
{
"name": "wood",
"num": {
"__COMMENT__": "static / loop / random",
"rule": "random",
"__COMMENT__": "Available distribution: uniform",
"__COMMENT__": "Default type: int",
"__COMMENT__": "Default distribution: uniform",
"min": 5,
"max": 5
},
"repeat": 4
},
{
"name": "stone",
"num": {
"rule": "random",
"min": 5,
"max": 5
},
"repeat": 4
},
{
"name": "hammer",
"num": {
"rule": "random",
"min": 0,
"max": 0
},
"repeat": 0
}
],
"events": [
{
"name": "hammer_craft",
"repeat": 41
}
],
"players": [
{
"job": "carpenter",
"__COMMENT__": "Field of View (one of three below):",
"__COMMENT__": " - an int: n = front = back = left = right",
"__COMMENT__": " - a list of two ints: (h, v), h = left = right, v = front = back)",
"fov": 3,
"repeat": 2
},
{
"job": "miner",
"__COMMENT__": "Field of View (one of three below):",
"__COMMENT__": " - an int: n = front = back = left = right",
"__COMMENT__": " - a list of two ints: (h, v), h = left = right, v = front = back)",
"fov": 3,
"repeat": 2
}
]
},
"static": {
"social": {
"relations": [],
"groups": []
},
"stackable": false
},
"max_length": 120,
"negotiation":{
"negotiation_steps": 20,
"claim_proposal_interval": 9
},
"post_updates":[
{
"function": "matching_edge",
"kwargs":{
"condition_attr": "matching_request_step",
"result_attr1": {
"parity": 0
},
"result_attr2": {
"parity": 1
}
}
},
{
"function": "merge_relation_to_group",
"kwargs":{
"condition_attr": "accept",
"result_attr": "score"
}
},
{
"function": "normalization",
"kwargs":{
"attr": "score"
}
},
{
"function": "clear_temporary_relation",
"kwargs":{
"attr": "matching_request_step"
}
},
{
"function": "split_score_to_group",
"kwargs": {
"attribute": "score"
}
}
]
}