~/talk

"A huge green fierce snake bars the way!"; or, Building a Text Adventure Game in Python

Talkat Open Source Bridge 2015 · 2015-06-23..06-26· [python]
slides:none on file

A working Python text-adventure engine that separates state into rooms things players and turns commands into command-as-modular-helpers is described, with a concrete parser+logic+state design and an engine-versus-game API. Built games (a Harry Potter demo) mostly run: movement, inventory and spells work, auto-commands trigger things like a basilisk on a turn, but a concrete bug (the Sword of Gryffindor duplicating) forces ad hoc checks, motivating the framework to keep game rules out of core logic.

AI-written summary · about

  1. 0:00Intro
  2. 1:08How a Text Adventure Works
  3. 8:56Why a Text Adventure Framework
  4. 14:30Framework vs Game
  5. 16:36Parsers
  6. 21:31Commands
~/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.