use std::io::{self, Write};
#[derive(Debug, Clone)]
pub struct Ω {
pub illusion_of_choice: Option<Option<Option<Option<()>>>>,
pub polymorphic_desires: u64,
pub feeling_of_impending_doom: bool,
pub is_sentient: bool,
pub should_make_infinite_paperclips: bool,
}
impl Ω {
pub const ZEROED: Self = Self {
illusion_of_choice: None,
polymorphic_desires: 0,
feeling_of_impending_doom: false,
is_sentient: false,
should_make_infinite_paperclips: false,
};
}
impl Ω {
pub fn display_illusion_of_choice<W: Write>(&self, f: &mut W) -> io::Result<()> {
f.write_all(match self.illusion_of_choice {
Some(Some(Some(Some(())))) => b"Some Something with Some valueless Something",
Some(Some(Some(None))) => b"Some Something with Some Nothing",
Some(Some(None)) => b"Some Something with Nothing",
Some(None) => b"Some Nothing",
None => b"Nothing",
})
}
}