Skip to content
System One

tsai-sc (Jev plays StarCraft)

Harness that lets Jev control the original StarCraft shareware through synthetic keyboard and mouse input, recording action probabilities for each decision.

phyous/tsai-sc on GitHub

Stars
24
Forks
2
Language
Python
License
MIT
Last push
16 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

from urllib.request import HTTPRedirectHandler, Request, build_opener


API_URL = "https://api.typesafe.ai/v1/systemone"
MAX_RESPONSE_BYTES = 1_048_576
RETRY_STATUSES = frozenset({408, 429, 500, 502, 503, 504, 529})


class TypeSafeError(RuntimeError):
    """Safe to display: messages contain no credentials or remote response text."""


class ConfigurationError(TypeSafeError):
    pass

View in tsai_sc/typesafe.py

Open on GitHub

PrimitivesChoice

More like this

Use cases this is tagged with