(&mut self, pos: &str)
| 60 | } |
| 61 | |
| 62 | pub(crate) fn change_position(&mut self, pos: &str) { |
| 63 | if let Command::Figure { position, .. } | Command::Move { position, .. } = self { |
| 64 | *position = pos.to_string(); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | pub(crate) fn action(&self) -> &String { |
| 69 | if let Command::Move { action, .. } = self { |