Prisoner’s Dilemma¶
Two players choose to cooperate or defect simultaneously. Play repeated rounds to compare strategies such as Tit for Tat, Always Cooperate, and Always Defect.
npm run prisoners-dilemma
npm run pd:tournament
The demo and tournament run strategies against each other. For training, PrisonersDilemmaParallel accepts both actions in one step and returns rewards per agent. It runs in TypeScript, not on the turn-based Python bridge.