blob: 6a780f318aab1e15b630750c18ad263bf6c710c0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use crate::sim::sim::UpdateCtx;
#[inline]
pub fn sim_update(ctx: &mut UpdateCtx) {
ctx.candidates_swap(&[
(ctx.self_x, ctx.self_y + 1),
(ctx.self_x - 1 + 2 * ctx.seqno_parity as i32, ctx.self_y + 1),
(ctx.self_x + 1 - 2 * ctx.seqno_parity as i32, ctx.self_y + 1),
]);
}
|