We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- The Bomberman Game
- Discussions
The Bomberman Game
The Bomberman Game
Sort by
recency
|
87 Discussions
|
Please Login in order to post a comment
Flowing is my java 8 solution
I wasn't a huge fan of this question. The first solution someone may come to has little in relation to the actual solution this question expects; yet developing the first, intuitive, solution is vital to seeing the pattern that allows the pattern based solution. I didn't appreciate the fact I was made to create an entire solution to discover a pattern that would allow me to create the real solution all because the example only went to n = 3.
Do some examples on paper and then observe this patter:
So the algorithm becomes:
Solution
Java8 solution, just switch between the two states of the grid: