From fa8608b3fb9b85d4fa2927555ba427fa6c7abd27 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 13 Mar 2021 20:35:53 +0000 Subject: [PATCH] at-otter hidden: Update when we move (specific, must generalise) Signed-off-by: Ian Jackson --- apitest/at-otter.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 069ffeda..12fbf507 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -512,9 +512,10 @@ impl Ctx { } for (xi, &p) in a_pawns.iter().enumerate().take(1) { - alice.api_with_piece_op_synch(&mut a_pieces, p, "m", json![ - [ (xi+1) * 15, 20 ] - ])?; + let xix: Coord = xi.try_into().unwrap(); + let pos = PosC([ (xix + 1) * 15, 20 ]); + a_pieces[p].pos = pos; + alice.api_with_piece_op_synch(&mut a_pieces, p, "m", json![pos.0])?; } alice.synchu(&mut a_pieces)?; -- 2.30.2