Initialized repository

This commit is contained in:
Lukas Wölfer
2025-07-26 00:36:46 +02:00
commit aafb40888d
4 changed files with 59 additions and 0 deletions

45
src/main.rs Normal file
View File

@@ -0,0 +1,45 @@
#[derive(Debug)]
struct Shop {
cards: [Card; 5],
coins: [u8; 5],
}
#[derive(Debug)]
enum Icon {
Circle,
Square,
Triangle,
Color,
}
#[derive(Debug)]
enum CardField {
Icon(Icon),
DoubleIcon((Icon, Icon)),
PointsPer(Icon),
Empty,
}
#[derive(Debug)]
struct Card {
field: [CardField; 5],
}
#[derive(Debug)]
struct Player {
cards: Vec<Card>,
coins: u8,
paintings: Vec<[Card; 3]>,
}
#[derive(Debug)]
struct Board {
players: Vec<Player>,
shop: Shop,
objectives: [Objective; 4],
}
#[derive(Debug)]
struct Objective {}
fn main() {}