pub mod events {
pub mod app;
pub mod event;
}
pub mod tui {
pub mod ui;
}
pub mod board;
pub mod db;
pub mod decoration {
use ratatui::style::Color;
#[inline(always)]
pub fn get_background_color(value: u32) -> Color {
match value {
2 => Color::Rgb(238, 228, 218), 4 => Color::Rgb(237, 224, 180), 8 => Color::Rgb(242, 177, 121), 16 => Color::Rgb(245, 149, 99), 32 => Color::Rgb(246, 124, 95), 64 => Color::Rgb(246, 94, 59), 128 => Color::Rgb(237, 207, 114), 256 => Color::Rgb(237, 204, 65), 512 => Color::Rgb(231, 170, 40), 1024 => Color::Rgb(214, 166, 0), 2048 => Color::Rgb(215, 149, 43), _ => Color::Black,
}
}
}