An Avalon (Resistance) engine for simulating, replaying, or scripting games