oecs-sharp/docs/testing-games.md

1.1 KiB

Testing games

  1. Games are dlls. Use a standalone test project to test a game.
  2. Create baseline game snapshots in textual format. Save to files.
  3. Create baseline logs via the r3 observable api. Save to files.
  4. Read the snapshot/logs manually to identify issues.
  5. Make sure serialization roundtrip works.

Play tests

The goal of playtests is to execute a game with AI players and potentially random seeds. Then the log/snapshots are read by the LLM agent to spot issues.

There is no failure in play tests; all tests pass but the agent should read the log for reference.

AI players are not LLMs here; they are typically common game AI implementations.

Create static functions that analyze the game state and return a command. Each such function is an agent. Each AI player routes its decisions to a random agent in a pool of weighted agents.

Agents to consider:

  • Random: evenly chooses every move randomly.
  • Greedy: uses a specific way to score actions. Always chooses the onewith highest score. There can be multiple Greedy agents wtih different scoring.

For each playtest attempt, generate a full game log, analyze and report what you find from the log.