commit aafb40888dd9c50bd4238086ea9b6101b1006816 Author: Lukas Wölfer Date: Sat Jul 26 00:36:46 2025 +0200 Initialized repository diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..435ff17 --- /dev/null +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c804456 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "canvas" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..bd3a118 --- /dev/null +++ b/src/main.rs @@ -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, + coins: u8, + paintings: Vec<[Card; 3]>, +} + +#[derive(Debug)] +struct Board { + players: Vec, + shop: Shop, + objectives: [Objective; 4], +} +#[derive(Debug)] +struct Objective {} + +fn main() {}