'use client'; import type { Action, GameView } from '@/game/engine'; import { allianceExpressionText } from '@/game/alliance-expression-promises'; import { AlliancePromiseGuideButton } from './alliance-promises'; export function AllianceExpressionPromises(props: { game: GameView; busy: boolean; send: (action: Action) => void }) { const game = props.game, own = game.allianceExpressionPromises.filter(promise => promise.player === game.me); if (!own.length) return null; const name = (id: string) => game.players.find(player => player.id === id)?.name ?? 'the named partner'; const live = own.some(promise => promise.turn === game.alliancePromiseNexus?.turn && !promise.fulfilled && !promise.released); const scalarOwnsGuide = game.alliancePromises.some(promise => promise.player === game.me && promise.turn === game.alliancePromiseNexus?.turn && !promise.fulfilled && !promise.released); return

Your alliance expression promises

Each condition concerns final actual alliance membership when this Nexus closes. AND requires every condition; OR requires at least one. No negates the whole expression, not each condition separately. Legal alternatives remain available; no fixed branch is selected for you. Yes and No settle only at the actual Nexus close. Forming an alliance does not fulfill the answer early. Offers alone are not alliances.

An owned Yes route needs an existing alliance or an actual reciprocal invitation. Neither answer promises another player’s consent or prevents their original actions. If future consent is needed, unknown may apply; the holder can ask again or save the card. Honor any earlier promises first; their own controls handle required payments. {' '}Alliance expression rules.

{live && !scalarOwnsGuide && }
; }