speeding up how fast the expanding box grows from every 15 to every 12 turns (#89)

This commit is contained in:
Chris Hoefgen 2022-06-28 14:46:21 -07:00 committed by GitHub
parent 9d6b1147cd
commit f6c3ed0791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,7 +311,7 @@ func (m DirectionalExpandingBoxMap) UpdateBoard(lastBoardState *rules.BoardState
currentTurn := lastBoardState.Turn + 1 currentTurn := lastBoardState.Turn + 1
startTurn := 1 startTurn := 1
spawnEveryNTurns := 15 spawnEveryNTurns := 12
// no-op if we're not on a turn that spawns hazards // no-op if we're not on a turn that spawns hazards
if (currentTurn-startTurn)%spawnEveryNTurns != 0 { if (currentTurn-startTurn)%spawnEveryNTurns != 0 {