Night Shift power-ups as the power-up sheet has them: Moonbeam shows the route, Sleepy Time naps the clouds for 6 hops, Star Magnet pulls the light on, Night Vision shows wrong pieces
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-5
@@ -95,12 +95,10 @@ class NightShiftLevelsTest {
|
||||
val g = NightGame(lv)
|
||||
val wrong = g.wrongPieces()
|
||||
assertTrue(wrong.isNotEmpty())
|
||||
// Moonbeam turns the nearest needed piece right, free.
|
||||
val m = g.moonbeam()
|
||||
// Star Magnet pulls the light on: the nearest needed piece turns right, free.
|
||||
val m = g.starMagnet()
|
||||
assertEquals(wrong.size - 1, m.wrongPieces().size); assertEquals(0, m.moves)
|
||||
// Star Magnet takes Owl to the next piece to turn.
|
||||
assertEquals(wrong.first(), g.starMagnet().owl)
|
||||
// Sleepy Time: the clouds stay put for ten hops, then drift again.
|
||||
// Sleepy Time: the clouds nap for six hops, then drift again.
|
||||
var s = g.sleepyTime(); val before = s.cloudTiles().toList()
|
||||
repeat(SLEEPY_HOPS) { s = s.hop(if (s.owl % NW == 0) 1 else -1, 0) }
|
||||
assertEquals(before, s.cloudTiles().toList())
|
||||
|
||||
Reference in New Issue
Block a user