diff --git a/src/actions.rs b/src/actions.rs index 2c7d91e..7beb7e5 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -27,6 +27,11 @@ pub struct SecondaryValues { pub struct Actions(pub Vec); impl Actions { + /// Creates a new empty sequence of actions. + pub fn new() -> Self { + Default::default() + } + /// Returns the total number of moves. pub fn moves(&self) -> usize { self.len()