Popping Blocks Chain Reaction Java Coding Challenge | Edabit | How'd You Code That?

preview_player
Показать описание
WTH is Popping Blocks?

When two blocks of the same "type" are adjacent to each other, the entire contiguous block disappears (pops off). If this occurs, this can allow previously separated blocks to be in contact with each other, setting off a chain reaction. This will continue until each block is surrounded by a different block:

['A', 'B', 'C', 'C', 'B', 'D', 'A']
// The two adjacent Cs pop off

['A', 'B', 'B', 'D', 'A']
// Two adjacent Bs pop off

['A', 'D', 'A']
// No more blocks can be popped off

Song: Heaven - Ikson (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Рекомендации по теме
Комментарии
Автор

Popping blocks is definitely one of my favorite challenges! Chain reactions are simply cool! Let me know if you enjoyed it!! Thanks for watching!

EdClarkHYCT
join shbcf.ru