I'm coding up the classic game Wizard's Castle as a way to learn Rust.
Since this is a learning project, it's going to be weird, unstructured, non-idiomatic, and subject to frequent refactoring.
Please don't hold it against me.
Clone the repo and cargo run
.
Command | |
---|---|
N |
North |
S |
South |
W |
West |
E |
East |
U |
Up |
D |
Down |
T |
Teleport |
M |
Map |
L |
Lamp |
F |
Flare |
G |
Gaze into an orb |
DR |
Drink from a pool |
O |
Open a chest or book |
H |
Help |
Q |
Quit |
-
Learn Rust
-
Have a Wizard's Castle library that other front-ends can use to play the game
- Build an ncurses front end
- Build to WASM with a web front end
- Have
room_at
androom_at_mut
return undiscovered status - Make fewer fields
pub
and provide accessors- Notably in
Room
- Notably in
- Move player buying things code out of player into game?