~/talk

Building a Text Adventure Using Rust

TalkinSpanishat RustDayMX 2017 · on Friday, 2017-09-01· [rust]
speakerdeck:sebasmagri
slides:none on file

Shows building a command-line text adventure in Rust, modeling rooms as a HashMap<i32, Room> with Room { title, description, transitions: Vec<i32> } and a Player holding a reference to the House; implements change_room returning Result to signal invalid moves and uses Vec::position to find transitions. Demonstrates Rust lifetimes (distinct 'a and 'b) and exposes the game as a REST service; workshop code is available on GitHub.

AI-written summary · about

  1. 0:00Text adventure in Rust
  2. 3:54Rust project structure
  3. 8:11House data with lifetimes
  4. 11:46Room type and transitions
  5. 17:53House layout
  6. 22:04Player and House
  7. 26:55Player methods
  8. 33:30change_room method
  9. 43:08Modules to app
  10. 47:33Room transitions and errors
  11. 52:52Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.