Skip to content

Commit

Permalink
routingのでバッグのために爆破やろう一回ださせて
Browse files Browse the repository at this point in the history
  • Loading branch information
iwiwi committed Jul 20, 2020
1 parent ba9847d commit 4ad8f5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AI
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# 例:
# AI_NAME=app
# AI_NAME=chokudAI
# AI_NAME=app_totsugeki
AI_NAME=wata
AI_NAME=app_totsugeki
# AI_NAME=wata

# AI に追加で渡したいフラグを入れてください
# 例:
Expand Down
2 changes: 1 addition & 1 deletion src/bin/app_totsugeki.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn run() {
// 次ステップのポジで重なるなら爆発!
let myp = PosVel::from(my_ship).apply_gravity().accelerate_and_move(dvx, dvy);
let enp = PosVel::from(en_ship).apply_gravity().accelerate_and_move(0, 0);
if myp.x == enp.x && myp.y == enp.y {
if (myp.x - enp.x).abs() + (myp.y - enp.y).abs() <= 3 {
eprintln!("{}", "BOMB!!!!!!!!".repeat(10));
commands.push(Command::Detonate(my_id, None));
}
Expand Down

0 comments on commit 4ad8f5b

Please sign in to comment.