Skip to content

Commit ce096db

Browse files
claudejsvd
authored andcommitted
Add TAS bot session abstraction for deterministic gameplay exploration
Introduces runtime/testing/tas.ts with three key abstractions: - inputSequence(): fluent DSL for building frame-by-frame input sequences - createTASSession(): stateful session with step/checkpoint/branch/search - serializeRecording/deserializeRecording: recording persistence 34 new tests covering input builder, session stepping, checkpoints, branching, BFS goal search, and end-to-end TAS workflows. https://claude.ai/code/session_01Nkfpuox6vhiCzp9Bh3mwZe
1 parent ab350a2 commit ce096db

4 files changed

Lines changed: 1091 additions & 0 deletions

File tree

runtime/testing/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,21 @@ export type {
7373
PropertyResult,
7474
} from "./property.ts";
7575

76+
// TAS (Tool-Assisted Speedrun) session
77+
export {
78+
inputSequence,
79+
createTASSession,
80+
serializeRecording,
81+
deserializeRecording,
82+
} from "./tas.ts";
83+
export type {
84+
InputSequenceBuilder,
85+
Checkpoint,
86+
TASSessionOptions,
87+
GoalSearchOptions,
88+
TASSession,
89+
} from "./tas.ts";
90+
7691
// Draw call capture & visual assertions
7792
export {
7893
enableDrawCallCapture,

0 commit comments

Comments
 (0)