~/talk

Cheating with Ruby

Talkat RubyConf 2018 · 2018-11-28..11-30· [ruby, creative-coding]
slides:none on file

A Ruby script called PetDetector RubyGem analyzes a game screenshot, uses RMagick for image ops, phashion perceptual hashes to identify pets and houses, probes edges to find the road, builds a graph and runs Dijkstra shortest-paths, then a constrained recursive solver that respects the four-pet capacity and limited gas. It reliably solves many levels (breaks on noisy screenshots) and typically runs in one to four seconds for level 12.

AI-written summary · about

  1. 0:00Start
  2. 2:11Pet Detective
  3. 7:16Pet Detector
  4. 8:03Live Demo
  5. 12:28Identify the Boundaries of the Game Boards
  6. 13:26Entity Detector
  7. 13:52Boundary Detector Class
  8. 14:12The Boundary Detector
  9. 19:22Animal Detector
  10. 24:40Detecting the Roads
  11. 35:08Solve Function
  12. 37:24Strategic Takeaways
  13. 38:27How Long Does It Take To Run for the Higher Levels
~/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.