File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed
Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1+ # AI の名前をちゃんと大文字小文字を間違えずに入れる
2+ # 例:
3+ # AI_NAME=app
4+ # AI_NAME=chokudAI
5+ AI_NAME=chokudAI
6+
7+ # AI に追加で渡したいフラグを入れてください
8+ # 例:
9+ # AI_FALGS=() # 空のときの例
10+ # AI_FALGS=(--attacker=chokudai --defender=wata) # 複数フラグ
11+ AI_FLAGS=()
Original file line number Diff line number Diff line change 1818
1919cp -a src build/submission/src
2020cp -a data build/submission/data
21+ cp -a AI build/submission/AI
2122cp -a Cargo.toml Cargo.lock build/submission/
2223cp -a submission/* build/submission/
2324
Original file line number Diff line number Diff line change 22
33set -eux
44
5- cargo build --release --offline --bin=chokudAI
6- cp ./target/release/chokudAI app
5+ source ./AI
6+
7+ cargo build --release --offline --bin=" ${AI_NAME} "
8+ cp " ./target/release/${AI_NAME} " app
79rm -rf ./target
Original file line number Diff line number Diff line change @@ -6,13 +6,7 @@ export ICFPC_API_HOST=$1
66export ICFPC_API_KEY=$2
77export JUDGE_SERVER=1
88
9- free -h
10- for f in /sys/fs/cgroup/memory/* ; do
11- echo $f
12- cat $f || echo ' failed to read'
13- echo
14- done
15- cat /proc/cpuinfo
9+ source ./AI
1610
17- ./app ${EXTRA_FLASG :- } " $@ " || \
11+ ./app " ${AI_FLAGS[@]} " ${EXTRA_FLAGS :- } " $@ " || \
1812 echo " ERROR: exit_code=$? "
You can’t perform that action at this time.
0 commit comments