Implement bounded Richese Nexus Betrayal auctions

This commit is contained in:
Quintine committed 2026-09-30 23:18:32 +10:00
1 parent a921c0da9b
commit 9c0000e469
25 files changed
+2208 -39

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import type { Action, GameView } from './engine';
/** All profiles obey the same seat-private legality, including promised cards
* and committed budgets. Held-card hints cannot override the projected offer. */
export function botNexusRicheseBetrayalActions(game: GameView): Action[] {
const reaction = game.richeseBetrayalReaction;
if (game.status !== 'playing' || !reaction?.event ||
!reaction.canPass || reaction.hasPassed) return [];
const own = game.players.find((player) => player.id === game.me);
if (!(own?.bot ?? own?.autopilot)) return [];
return [{
type: reaction.canUse && !reaction.blocked ? 'richeseBetrayalUse' : 'richeseBetrayalPass',
event: reaction.event,
}];
}