Support AI opponents in two-faction games

This commit is contained in:
Quintine committed 2026-10-28 00:02:02 +11:00
1 parent aa6f77372f
commit b00d720e40
13 files changed
+395 -28

No files matched your search

+2
View File
@@ -861,6 +861,8 @@ export default function Home() {
onModeChange={(enabled) => void send({ type: 'twoPlayerMode', enabled })}
onSwitch={switchFaction}
onAdd={(name, factionId) => void addControlledFaction(name, factionId)}
onAddBot={(faction, difficulty) => void send({ type: 'addBot', faction, difficulty })}
onAddControlledBot={(controller, faction, difficulty) => void send({ type: 'addControlledBot', controller, faction, difficulty })}
onRetry={() => { if (twoPlayerEntry) void dispatchControlledFaction(twoPlayerEntry, false); }}
retryDisabled={busy || needsReconcile || checkingConnection || handoverPending || aiPermissionPending || claimUncertain || !!twoPlayerEntryProblem || twoPlayerEntry?.room !== game.code}
/></div>}