~/talk

Shall We Play A Game?

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby]
slides:none on file

A Ruby solver for Ricochet Robots tackles a 16×16 board with 976.5 billion possible states using DFS, BFS and A; practical tricks include moving the active robot first, early goal detection when generating successors, precomputing per-cell stop positions, collapsing robot-color permutations into equivalence classes, reducing object churn, and using a C-backed priority queue (fast_containers) plus profiling with RubyProf. Those changes cut explored states by roughly threefold and turn runtimes to about 3 min 7 s* for a full 17-disc game, sometimes down to 30s.

AI-written summary · about

  1. 0:00Start
  2. 0:39Computers Playing Games
  3. 2:25Game Playing
  4. 7:04Robot Movement
  5. 7:28Trees
  6. 8:43Depth-First Search
  7. 10:23Cycles
  8. 11:36Not a Tree
  9. 12:10Complications
  10. 13:55Breadth-First Search
  11. 18:51Do Less Things: Check for Solutions at Generation Time
  12. 26:41Best-First Search
  13. 30:23A* Algorithm
~/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.