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