fantasy_realms_unofficial_api 0.1.0

An unofficial API for the Fantasy Realms card game.
Documentation
use super::*;

pub(crate) const CANDLE: Card = Card {
    name: Name::Candle,
    suit: Suit::Flame,
    strength: 2,
    adder: None,
    wild: None,
    modifier: None,
    immunity: None,
    blanks: None,
    bonus: Some(candle_bonus),
    penalty: None,
};

pub(crate) fn candle_bonus(hand: &ScoringHand) -> i16 {
    if hand.contains_name(Name::BookOfChanges) &&
       hand.contains_name(Name::BellTower) &&
       hand.number_of_suit(Suit::Wizard) > 0 {
        100
    } else {
        0
    }
}