I was inspired by the ChainReaction Game that went viral on play store
I was continuously thinking on how I can build and implement such a game
At that time I had no idea of Game Development, However I converted the problem into 2D array and then tried to solve the game triggers
0 1 2 3 40 [ ] [ ] [ ] [ ] [ ]1 [ ] [ ] [ ] [ ] [ ]2 [ ] [ ] [ ] [ ] [ ]3 [ ] [ ] [ ] [ ] [ ]4 [ ] [ ] [ ] [ ] [ ] | | | click(1,2) | V 0 1 2 3 40 [ ] [ ] [ ] [ ] [ ]1 [ ] [ ] [1] [ ] [ ]2 [ ] [ ] [ ] [ ] [ ]3 [ ] [ ] [ ] [ ] [ ]4 [ ] [ ] [ ] [ ] [ ] | | | click(1,2) | V 0 1 2 3 40 [ ] [ ] [ ] [ ] [ ]1 [ ] [ ] [2] [ ] [ ]2 [ ] [ ] [ ] [ ] [ ]3 [ ] [ ] [ ] [ ] [ ]4 [ ] [ ] [ ] [ ] [ ] | | | click(1,2) | V 0 1 2 3 40 [ ] [ ] [ ] [ ] [ ]1 [ ] [ ] [3] [ ] [ ]2 [ ] [ ] [ ] [ ] [ ]3 [ ] [ ] [ ] [ ] [ ]4 [ ] [ ] [ ] [ ] [ ] | | | click(1,2) | V 0 1 2 3 40 [ ] [ ] [1] [ ] [ ]1 [ ] [1] [ ] [1] [ ]2 [ ] [ ] [1] [ ] [ ]3 [ ] [ ] [ ] [ ] [ ]4 [ ] [ ] [ ] [ ] [ ]ALRIGHT! This looks amazing that I converted this game problem to a 2D array problem
Now the goal was to solve the complex chain reaction that gets generated on user click choices
My First Approach:
My Second Approach:
You can find the code on github, I have used Python to develop the game using PyGame