"big-bundle","duped-example", "chess-purple-cannon", "a purple cannon",
&mut |ctx|
{
- ctx.reset_game(&ctx.ds().gss("reset modded-spec")?)?;
+ ctx.otter_resetting(&ctx.ds().gss("reset modded-spec")?)?;
let alice = ctx.connect_player(&ctx.alice)?;
let pieces = alice.pieces::<PIA>()?;
fn reset_with_bundles(&mut self) {
self.clear_reset_to_demo()?;
- self.reset_game(&self.ds().gss(
+ self.otter_resetting(&self.ds().gss(
"reset demo-in-test-bundle @examples@/test-bundle.zip"
)?)?;
a_pieces[a_pawns[0]].pos);
let command = self.ds().gss("reset demo")?;
- self.reset_game(&command)?;
+ self.otter_resetting(&command)?;
}
#[throws(Explode)]
if !(py || gy) { break }
let command = self.ds().also(&[("game",&game),("perm",&perm)])
.gss("reset --reset-table @perm@ @game@")?;
- self.reset_game(&command).context(perm).context(game)?;
+ self.otter_resetting(&command).context(perm).context(game)?;
}
}
}
#[throws(AE)]
- pub fn reset_game<S:AsRef<str>>(&mut self, args: &[S]) -> OtterOutput {
+ pub fn otter_resetting<S:AsRef<str>>(&mut self, args: &[S]) -> OtterOutput {
self.has_lib_markers = false;
self.otter(args)?
}
#[throws(Explode)]
pub fn clear_reset_to_demo(&mut self) {
let ds = self.su().ds.clone();
- self.reset_game(&ds.gss("clear-game")?)?;
- self.reset_game(&ds.gss("reset demo")?)?;
+ self.otter_resetting(&ds.gss("clear-game")?)?;
+ self.otter_resetting(&ds.gss("reset demo")?)?;
}
}