use crate::Turn;
use super::Lan;
impl Lan {
#[must_use]
pub fn export(turn: &Turn) -> String {
let turn_content: String = if let Some(promotion) = turn.promotion {
format!(
"{}{}{}",
turn.current,
turn.target,
promotion.export_piecetype_lowercase()
)
} else {
format!("{}{}", turn.current, turn.target)
};
turn_content
}
}