class

InputDriver

Inherits Reference < Object

Abstract source of player actions. Decoupling this from the game loop lets the same loop run interactively from STDIN (a human) or be driven by an automated agent (used by --autopilot to stress-test the DM + tool system end to end).

Instance methods

next_action(state : GameState, last_response : String | Nil) : String | Nil

Return the next action string, or nil to end the game (EOF / stop signal).

Source