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), ]); }