~/talk

Magic is Ruby, Ruby is Magic!

Talkat RubyConf AU 2024 · 2024-04-11..04-12· [ruby]
slides:none on file

A Ruby app that simulates Magic The Gathering models the full game loop with actions → effects → events, implements the stack and triggered abilities, and encodes cards as a Ruby DSL; about 200 cards are implemented so far out of ~25,000, with roughly a million words of rules to model. Replacement effects are handled as a middleware-like chain, tests drive each card, some cards force rearchitecting, and infinite-action loops detection remains an open challenge. The project is on GitHub.

AI-written summary · about

  1. 0:00Ruby feels like magic
  2. 3:17Ruby to Magic the Gathering
  3. 8:09Magic cards in Ruby
  4. 10:16Game loop in Ruby
  5. 15:10Events and triggered abilities
  6. 17:36Replacement effects and middleware
  7. 20:03Infinite loops in game logic
  8. 22:11Practice with card implementation
  9. 23:55Push Ruby skills further
~/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.