Add changing space backdrops to Snake (0.76.3)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -74,4 +74,12 @@ class SnakeGameTest {
|
||||
assertEquals(4f to 5f, snakeLine(moved, before, 1f).first())
|
||||
assertEquals(4f to 5f, snakeLine(moved, null, .5f).first())
|
||||
}
|
||||
|
||||
@Test fun theBackdropChangesEveryTenBitesAndGoesRound() {
|
||||
assertEquals(0, snakeBackdrop(0))
|
||||
assertEquals(0, snakeBackdrop(90))
|
||||
assertEquals(1, snakeBackdrop(100))
|
||||
assertEquals(3, snakeBackdrop(300))
|
||||
assertEquals(0, snakeBackdrop(400))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user