Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny loop refactor in LevelSystem#init #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Tiny loop refactor in LevelSystem#init #22

wants to merge 1 commit into from

Conversation

douglascalhoun
Copy link

Might be slightly more straightforward... or you could just hardcode the array:

[10, 20, 30, 40, 50, 70, 90, 110, 130, 150, 180, 210, 240, 270, 300, 340, 380, 420, 460, 500, 550, 600, 650, 700, 750, 810, 870, 930, 990, 1050, 1120, 1190, 1260, 1330, 1400, 1480, 1560, 1640, 1720, 1800, 1890, 1980, 2070, 2160, 2250, 2350, 2450, 2550, 2650, 2750, 2860, 2970, 3080, 3190, 3300, 3420, 3540, 3660, 3780, 3900, 4030, 4160, 4290, 4420, 4550, 4690, 4830, 4970, 5110, 5250, 5400, 5550, 5700, 5850, 6000, 6160, 6320, 6480, 6640, 6800, 6970, 7140, 7310, 7480, 7650, 7830, 8010, 8190, 8370, 8550, 8740, 8930, 9120, 9310, 9500, 9700, 9900, 10100, 10300, 10500, 10710, 10920, 11130, 11340, 11550, 11770, 11990, 12210, 12430, 12650, 12880, 13110, 13340, 13570, 13800, 14040, 14280, 14520, 14760, 15000, 15250, 15500, 15750, 16000, 16250, 16510, 16770, 17030, 17290, 17550, 17820, 18090, 18360, 18630, 18900, 19180, 19460, 19740, 20020, 20300, 20590, 20880, 21170, 21460, 21750, 22050, 22350, 22650, 22950, 23250, 23560, 23870, 24180, 24490, 24800, 25120, 25440, 25760, 26080, 26400, 26730, 27060, 27390, 27720, 28050, 28390, 28730, 29070, 29410, 29750, 30100, 30450, 30800, 31150, 31500, 31860, 32220, 32580, 32940, 33300, 33670, 34040, 34410, 34780, 35150, 35530, 35910, 36290, 36670, 37050, 37440, 37830, 38220, 38610, 39000, 39400, 39800, 40200, 40600, 41000]

Might be slightly more straightforward... or you could just hardcode the array:

[10, 20, 30, 40, 50, 70, 90, 110, 130, 150, 180, 210, 240, 270, 300, 340, 380, 420, 460, 500, 550, 600, 650, 700, 750, 810, 870, 930, 990, 1050, 1120, 1190, 1260, 1330, 1400, 1480, 1560, 1640, 1720, 1800, 1890, 1980, 2070, 2160, 2250, 2350, 2450, 2550, 2650, 2750, 2860, 2970, 3080, 3190, 3300, 3420, 3540, 3660, 3780, 3900, 4030, 4160, 4290, 4420, 4550, 4690, 4830, 4970, 5110, 5250, 5400, 5550, 5700, 5850, 6000, 6160, 6320, 6480, 6640, 6800, 6970, 7140, 7310, 7480, 7650, 7830, 8010, 8190, 8370, 8550, 8740, 8930, 9120, 9310, 9500, 9700, 9900, 10100, 10300, 10500, 10710, 10920, 11130, 11340, 11550, 11770, 11990, 12210, 12430, 12650, 12880, 13110, 13340, 13570, 13800, 14040, 14280, 14520, 14760, 15000, 15250, 15500, 15750, 16000, 16250, 16510, 16770, 17030, 17290, 17550, 17820, 18090, 18360, 18630, 18900, 19180, 19460, 19740, 20020, 20300, 20590, 20880, 21170, 21460, 21750, 22050, 22350, 22650, 22950, 23250, 23560, 23870, 24180, 24490, 24800, 25120, 25440, 25760, 26080, 26400, 26730, 27060, 27390, 27720, 28050, 28390, 28730, 29070, 29410, 29750, 30100, 30450, 30800, 31150, 31500, 31860, 32220, 32580, 32940, 33300, 33670, 34040, 34410, 34780, 35150, 35530, 35910, 36290, 36670, 37050, 37440, 37830, 38220, 38610, 39000, 39400, 39800, 40200, 40600, 41000]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant