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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "canvas"
version = "0.1.0"

6
Cargo.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
name = "canvas"
version = "0.1.0"
edition = "2024"
[dependencies]

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() {}