-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_team
executable file
·217 lines (213 loc) · 11.1 KB
/
start_team
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
#!/bin/bash
#-h $HOST -p $PORT -P $OLCOACH_PORT -t $TEAM -r $RESULT -b $BIN --R $RPC
bin=/data1/nader/workspace/robo/allgames/bins
HOST="127.0.0.1"
PORT=6000
OLCOACH_PORT=6002
TEAM="base"
RESULT="result.txt"
RPC_PORT=50051
RPC_TYPE="grpc"
BIN=""
while getopts "h:p:P:t:r:b:R:T:" opt; do
case $opt in
h) HOST=$OPTARG ;;
p) PORT=$OPTARG ;;
P) OLCOACH_PORT=$OPTARG ;;
t) TEAM=$OPTARG ;;
r) RESULT=$OPTARG ;;
b) BIN=$OPTARG ;;
R) RPC_PORT=$OPTARG ;;
T) RPC_TYPE=$OPTARG ;;
\?) echo "Invalid option -$OPTARG" ;;
esac
done
echo "HOST=$HOST PORT=$PORT OLCOACH_PORT=$OLCOACH_PORT TEAM=$TEAM RESULT=$RESULT BIN=$BIN RPC_PORT=$RPC_PORT RPC_TYPE=$RPC_TYPE"
if [[ -n $BIN ]]; then
cd $BIN && ./auto.sh -p $PORT -P $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "helios_base" ]]; then
cd ./binaries/helios_base && ./start.sh -p $PORT -P $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "cyrus2024" ]]; then
cd ./binaries/cyrus2024 && ./start.sh -p $PORT -P $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "helios2024" ]]; then
cd ./binaries/helios2024 && ./startAll.sh $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "yushan2024" ]]; then
cd ./binaries/yushan2024 && ./start.sh -p $PORT &>"$RESULT"
elif [[ $TEAM == "base" ]]; then
cd /home/nader/workspace/helios-base/build/bin && ./start.sh -p $PORT -P $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "old" ]]; then
cd /home/nader/workspace/old-helios-base/helios-base/build/bin && ./start.sh -p $PORT -P $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "py2d" ]]; then
cd /home/nader/workspace/clsf/py-agent-2d/scripts/binary && ./start.bin --server-port $PORT --use-different-rpc-port --disable-log-file --auto-close-rpc-server &>"$RESULT"
elif [[ $TEAM == "cls" ]]; then
cd /home/nader/workspace/clsf/py-agent-2d/scripts/proxy && ./start.sh -p $PORT -P $OLCOACH_PORT --rpc-type grpc --rpc-port $RPC_PORT --rpc-type $RPC_TYPE&>"$RESULT"
elif [[ $TEAM == "cls1" ]]; then
cd /home/nader/workspace/clsf/soccer-simulation-proxy/b/cls1/bin && ./start.sh -p $PORT -P $OLCOACH_PORT --rpc-type grpc --rpc-port $RPC_PORT --rpc-type $RPC_TYPE&>"$RESULT"
elif [[ $TEAM == "yush24" ]]; then
cd /home/nader/workspace/bin/YuShan2024 && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "yush23" ]]; then
cd /home/nader/workspace/bin/YuShan2023 && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_csu_yunlu" ]]; then
cd ${bin}/2016_csu_yunlu/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_cyrus" ]]; then
cd ${bin}/2016_cyrus/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_fcp_gpr" ]]; then
cd ${bin}/2016_fcp_gpr/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_fra" ]]; then
cd ${bin}/2016_fra/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_fury" ]]; then
cd ${bin}/2016_fury/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_gliders" ]]; then
cd ${bin}/2016_gliders/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_helios" ]]; then
cd ${bin}/2016_helios/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_hermes" ]]; then
cd ${bin}/2016_hermes/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_hfutengine" ]]; then
cd ${bin}/2016_hfutengine/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_hillstone" ]]; then
cd ${bin}/2016_hillstone/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_itandroids" ]]; then
cd ${bin}/2016_itandroids/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_lefteagle" ]]; then
cd ${bin}/2016_lefteagle/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_marlik" ]]; then
cd ${bin}/2016_marlik/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_mt" ]]; then
cd ${bin}/2016_mt/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_oxsy" ]]; then
cd ${bin}/2016_oxsy/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_ri-one" ]]; then
cd ${bin}/2016_ri-one/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2016_shiraz" ]]; then
cd ${bin}/2016_shiraz/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_alice" ]]; then
cd ${bin}/2017_alice/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_csuyunlu" ]]; then
cd ${bin}/2017_csuyunlu/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_cyrus" ]]; then
cd ${bin}/2017_cyrus/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_fifty-storms" ]]; then
cd ${bin}/2017_fifty-storms/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_fra" ]]; then
cd ${bin}/2017_fra/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_helios" ]]; then
cd ${bin}/2017_helios/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_hfutengine" ]]; then
cd ${bin}/2017_hfutengine/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_hillstone" ]]; then
cd ${bin}/2017_hillstone/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_itandroids" ]]; then
cd ${bin}/2017_itandroids/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_mt" ]]; then
cd ${bin}/2017_mt/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_nexus2d" ]]; then
cd ${bin}/2017_nexus2d/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_oxsy" ]]; then
cd ${bin}/2017_oxsy/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_persiangulf" ]]; then
cd ${bin}/2017_persiangulf/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_rione" ]]; then
cd ${bin}/2017_rione/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2017_ziziphus" ]]; then
cd ${bin}/2017_ziziphus/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_alice" ]]; then
cd ${bin}/2018_alice/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_cyrus" ]]; then
cd ${bin}/2018_cyrus/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_fcpgpr" ]]; then
cd ${bin}/2018_fcpgpr/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_fraunited" ]]; then
cd ${bin}/2018_fraunited/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_helios" ]]; then
cd ${bin}/2018_helios/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_hillstone" ]]; then
cd ${bin}/2018_hillstone/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_itandroids" ]]; then
cd ${bin}/2018_itandroids/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_mt" ]]; then
cd ${bin}/2018_mt/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_namira" ]]; then
cd ${bin}/2018_namira/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_oxsy" ]]; then
cd ${bin}/2018_oxsy/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_razi" ]]; then
cd ${bin}/2018_razi/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_rione" ]]; then
cd ${bin}/2018_rione/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2018_yushan" ]]; then
cd ${bin}/2018_yushan/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_cyrus" ]]; then
cd ${bin}/2019_cyrus/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_fcpgpr" ]]; then
cd ${bin}/2019_fcpgpr/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_fractals" ]]; then
cd ${bin}/2019_fractals/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_fraunited" ]]; then
cd ${bin}/2019_fraunited/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_helios" ]]; then
cd ${bin}/2019_helios/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_hfutengine" ]]; then
cd ${bin}/2019_hfutengine/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_hillstone" ]]; then
cd ${bin}/2019_hillstone/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_itandroids" ]]; then
cd ${bin}/2019_itandroids/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_mt" ]]; then
cd ${bin}/2019_mt/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_razi" ]]; then
cd ${bin}/2019_razi/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_receptivity" ]]; then
cd ${bin}/2019_receptivity/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_rione" ]]; then
cd ${bin}/2019_rione/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_robocin" ]]; then
cd ${bin}/2019_robocin/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_titans" ]]; then
cd ${bin}/2019_titans/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2019_yushan" ]]; then
cd ${bin}/2019_yushan/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_alice" ]]; then
cd ${bin}/2021_alice/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_aras" ]]; then
cd ${bin}/2021_aras/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_austras2d" ]]; then
cd ${bin}/2021_austras2d/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "test" ]]; then
cd ../test/src && ./auto.sh -h $HOST -p $PORT -P $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_cyrus" ]]; then
cd ${bin}/2021_cyrus/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_cyrus_r4" ]]; then
cd ${bin}/2021_cyrus_r4/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_cyrus_r3" ]]; then
cd ${bin}/2021_cyrus_r3/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_cyrus_r2" ]]; then
cd ${bin}/2021_cyrus_r2/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_fra-united" ]]; then
cd ${bin}/2021_fra-united/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_hades2d" ]]; then
cd ${bin}/2021_hades2d/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_helios" ]]; then
cd /home/arad/hel2021 && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_hfutengine" ]]; then
cd ${bin}/2021_hfutengine/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_itandroids" ]]; then
cd ${bin}/2021_itandroids/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_jyo_sen" ]]; then
cd ${bin}/2021_jyo_sen/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_mt" ]]; then
cd ${bin}/2021_mt/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_oxsy" ]]; then
cd ${bin}/2021_oxsy/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_persepolis" ]]; then
cd ${bin}/2021_persepolis/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_robocin" ]]; then
cd ${bin}/2021_robocin/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_thunderleague" ]]; then
cd ${bin}/2021_thunderleague/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
elif [[ $TEAM == "2021_yushan" ]]; then
cd ${bin}/2021_yushan/ && ./startAll $PORT $OLCOACH_PORT &>"$RESULT"
else
echo "${TEAM} is not found" >>"$RESULT"
fi
sleep 5