n18route 0.1.0

Searches 18xx maps for optimal route combinations.
Documentation
//! Route bonuses that can increase revenue.

use n18map::HexAddress;

/// The different types of route bonus that may be applied.
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub enum Bonus {
    /// A bonus for visiting a specific location.
    VisitBonus { locn: HexAddress, bonus: usize },
    /// A bonus for connecting one location to another location.
    ConnectionBonus {
        from: HexAddress,
        to_any: Vec<HexAddress>,
        bonus: usize,
    },
}