undef-engine
2025-11-30
Add NPC chat, game engine primitives, and architecture audit
127 files · 14,601+ · 5,192-
NPC chat and smack talk
3 files changed
chat.pyNPC chat and smack talk capabilitiesactions.pyUpdated NPC actions with common code between gamesplayer.pyNPC player with reinforced persona and instructions
- Added ability for NPCs to chat and smack talk during games
instantiate
behavioral
1 file
chat.py
- Reinforced NPC persona and instruction following
streamline
internal
1 file
player.py
- Refactored NPC to use common code between games
decouple
internal
1 file
actions.py
Game engine primitives
9 files changed
score.pyScore, Streak, and ScoreBoard primitivesvote.pyVote and BlindVote primitivesphase.pyPhase state machine primitivetimer.pyTimer primitive with async countdownrotation.pyRotation primitive for turn management__init__.pyPrimitives package export moduletest_score.pyScore primitive teststest_vote.pyVote primitive teststest_phase.pyPhase primitive tests
- Added Tier 1 game engine primitives with comprehensive tests
instantiate
architectural
5 files
score.pyvote.pyphase.pytimer.pyrotation.py
- Added event emission to Score, Streak, ScoreBoard, Vote, and BlindVote primitives
instantiate
behavioral
2 files
score.pyvote.py
- Refactored Phase, Timer, Rotation primitives to use attrs for cleaner code
decouple
internal
3 files
phase.pytimer.pyrotation.py
- Added integration tests for engine primitives
qualify
internal
3 files
test_score.pytest_vote.pytest_phase.py
Configuration and architecture improvements
5 files changed
playwright.config.tsUpdated Playwright config with global setup/teardownWebSocketContext.tsxImproved connection managementuseNpcPlayer.tsUpdated NPC player hookuseTimerState.tsUpdated timer state hookARCHITECTURE_AUDIT.mdComprehensive architecture audit report