chiark / gitweb /
at-otter hidden: Move a pawn out of occultation
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Mar 2021 18:35:16 +0000 (18:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Mar 2021 19:58:07 +0000 (19:58 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs

index f9f8dbfd8875dfc0caa785e0bfbadc04e319de1e..c1e188d66d7385414d4c4e19a33fe7c9712b0ef7 100644 (file)
@@ -507,6 +507,15 @@ impl Ctx {
       assert_eq!(got, None);
     }
 
+    for (xi, &p) in a_pawns.iter().enumerate().take(1) {
+      alice.api_with_piece_op_synch(&a_pieces[p].id, "m", json![
+        [ (xi+1) * 15, 20 ]
+      ])?;
+    }
+
+    alice.synch()?;
+    bob.synchu(&mut b_pieces)?;
+
     // to repro a bug, have Bob move the RHS pawn out again
 
     self.su_mut().mgmt_conn.fakerng_unfake()?;