The Stragedy AI is approaching singularity.

This commit is contained in:
raeleus 2024-11-11 08:34:40 -08:00
parent 789e05e5f6
commit 15a99ea8b9
3 changed files with 146 additions and 53 deletions

View file

@ -597,12 +597,10 @@ Type d to deal the cards or press f to forfeit.
var playerDeckCount = state.stragedyPlayerDeck.length
var playerDiscardCount = state.stragedyPlayerDiscard.length
if (!state.stragedyEnemySkipTurn) text = `-----The Opponent's Turn-----${state.stragedyEnemyTurnText}
`
else text = ""
if (!state.stragedyEnemySkipTurn) text = `-----The Opponent's Turn-----${state.stragedyEnemyTurnText}`
else text = "-----The Opponent's Cards-----\n"
text += `-----The Opponent's Cards-----
The opponent has ${enemyDeckCount} cards in the deck, ${enemyDiscardCount} in the discard pile, and ${enemyHandCount} in their hand.
text += `The opponent has ${enemyDeckCount} cards in the deck, ${enemyDiscardCount} in the discard pile, and ${enemyHandCount} in their hand.
-----The Battlefield-----
Opponent's cards on the battlefield: ${enemyBattlefield} = ${state.stragedyEnemyScore} points
@ -615,11 +613,8 @@ ${toTitleCase(character.name)} ${haveWord} ${playerDeckCount} cards in the deck
-----${possessiveName} Turn-----`
if (state.stragedyPlayerHand.length > 0) text += `
Play a number card to the battlefield by typing its number.
Play a letter card by typing the letter followed by the card you want to play it on.
Type d and the number or letter of a card in your hand to discard it. You will then draw 2 cards.
Type r to retire. This forces the opponent to make their last move.
Type f to forfeit. This quits the game immediately.
Play a number card by typing its number. Play a letter card by typing the letter and target card.
Type d and a number/letter to discard. Type r to retire. Type f to forfeit.
`
else text += `
Type d to draw a card.