Problem 3099. Rumis Scorer 1
Rumis is a multiplayer 3D block board game where the goal is to have the most squares visible, when viewed from above, after pieces have been played till there are no moves remaining. The picture below shows a completed 4-player round. There are a variety of board stencils and permissible heights possible in this game.
For this problem, you will be provided a completed 2-player rectangular board where the two players' colors are red and blue. The board will be two levels high and completely filled. It will also be a character array wherein the two players' squares are represented by 'r' or 'b'. See the test suite for examples.
Write a function to count the squares visible when viewed from above to determine who won each round.
![](http://www.exodusbooks.com/Samples/Games/RumisCoricanchaBig.jpg)
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers40
Suggested Problems
-
Make an awesome ramp for a tiny motorcycle stuntman
625 Solvers
-
Return a list sorted by number of consecutive occurrences
356 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1720 Solvers
-
Sum the 'edge' values of a matrix
335 Solvers
-
Return fibonacci sequence do not use loop and condition
528 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!