Categories
Dev

Rust Limericks

Rust concepts in Limerick form I asked ChatGPT to explain the fundamentals of Rust in limerick form. It helped me gain a quick grasp of the core concepts. Chapters Chapter 1: Ownership Chapter 2: Borrowing Chapter 3: Lifetimes Chapter 4: Pattern Matching Chapter 5: Traits & Generics Chapter 6: Result & Option Chapter 7: Modules […]

Categories
Console Rpg in Rust

Part 1 – Character

We start with creating the character.rs, stats.rs, item.rs and inventory.rs Part 1 – Character We begin with the character, a struct that later will be used for both player npcs. A character has a name, a level, stats and an inventory. The stats are contained in a struct of its own. The inventory simply contains […]