project14 0.1.0

A fun game where you guess what number the computer has chosen.
Documentation
//! #Art
//!
//! A library for modeling artistic concepts.
//! 一个用来建模艺术概率的代码库

pub use self::kinds::PrimaryColor;
pub use self::kinds::SecondaryColor;
pub use self::utils::mix;

pub mod kinds {
    /// RYB颜色模型的三原色

    #[derive(Debug)]
    pub enum PrimaryColor {
        Red,
        Yellow,
        Blue,
    }

    /// RYB模型的调和色

    #[derive(Debug)]
    pub enum SecondaryColor {
        Orange,
        Green,
        Purple,
    }
}

pub mod utils {
    use crate::kinds::*;

    //将两种等量的原色混合生成调和色
    pub fn mix(c1: PrimaryColor, c2: SecondaryColor) -> SecondaryColor {
        println!("{:?}--{:?}",c1,c2);
        SecondaryColor::Green
    }
}