Skydoku 8x8 brings in Night Cap; Patience Orbit Deck: channel suits, the cast on the court cards, Ollie's hints, Undo on Gentle, draw three on Tricky, its own wins
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -130,4 +130,29 @@ class PairsPatienceTest {
|
||||
assertTrue(pairsScore(3, 1) > pairsScore(2, 40))
|
||||
assertEquals("3 boards · 31 pairs", pairsLine(pairsScore(3, 31)))
|
||||
}
|
||||
|
||||
// ---------- the Orbit Deck (Phase 2) ----------
|
||||
|
||||
@Test fun theOrbitDeckKeepsTheWarmCoolRuleAndNamesItsCards() {
|
||||
// Riot and Tots are warm (the "red" suits), Orbit 1 and Terra cool: the column rule is unchanged.
|
||||
assertTrue(PlayingCard(5, 1).red); assertTrue(PlayingCard(5, 2).red); assertFalse(PlayingCard(5, 0).red); assertFalse(PlayingCard(5, 3).red)
|
||||
assertEquals(listOf("Orbit 1", "Riot", "Tots", "Terra"), OrbitSuits.map { it.first })
|
||||
assertEquals("the queen of Terra", orbitCardName(PlayingCard(12, 3))); assertEquals("the 7 of Riot", orbitCardName(PlayingCard(7, 1)))
|
||||
}
|
||||
|
||||
@Test fun olliesHintPrefersHomeThenUncoveringThenTheTurnedCard() {
|
||||
// An ace on the turned pile: home first.
|
||||
assertEquals(PatienceHint(WASTE, 1, 2), game(WASTE to listOf(PlayingCard(1, 0)), 6 to listOf(PlayingCard(9, 1))).hint())
|
||||
// A run that uncovers a face-down card: a black 8 on a red 9.
|
||||
val uncover = game(6 to listOf(PlayingCard(4, 0, false), PlayingCard(8, 0)), 7 to listOf(PlayingCard(9, 1)))
|
||||
assertEquals(PatienceHint(6, 1, 7), uncover.hint())
|
||||
// The turned card onto a column.
|
||||
assertEquals(PatienceHint(WASTE, 1, 7), game(WASTE to listOf(PlayingCard(8, 3)), 7 to listOf(PlayingCard(9, 2))).hint())
|
||||
// Nothing to do but turn the stock.
|
||||
assertNull(game(STOCK to listOf(PlayingCard(5, 0, false)), 6 to listOf(PlayingCard(9, 1))).hint())
|
||||
// Following the hint really is a legal move.
|
||||
val h = uncover.hint()!!
|
||||
val after = uncover.point(h.from).press().point(h.to).press()
|
||||
assertEquals(2, after.piles[7].size); assertTrue(after.piles[6].single().up)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class ModeTablesTest {
|
||||
|
||||
@Test fun blockDropsSprintAndPatiencesDailiesKeepTheirOwnTables() {
|
||||
assertEquals(listOf("Blocks", BLOCKS_SPRINT_SCORES), scoreTables("Blocks"))
|
||||
assertEquals(listOf("Patience", PATIENCE_DAILY_SCORES, PATIENCE_DAILY3_SCORES), scoreTables("Patience"))
|
||||
assertEquals(listOf("Patience", PATIENCE_DAILY_SCORES, PATIENCE_DAILY3_SCORES, PATIENCE_ORBIT_SCORES), scoreTables("Patience"))
|
||||
var d = ArcadeProfileData(profileId = "p1")
|
||||
// A Sprint counts only when finished, fastest first.
|
||||
d = recordRun(d, BLOCKS_SPRINT_SCORES, tableKind("Blocks", BLOCKS_SPRINT_SCORES, ScoreKind.Points), RunEnd(9_000, false), 1)
|
||||
|
||||
Reference in New Issue
Block a user