Initialized repository
This commit is contained in:
45
src/main.rs
Normal file
45
src/main.rs
Normal 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() {}
|
||||
Reference in New Issue
Block a user