Problem 3100. Rumis Scorer 2
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 rectangular board where there are anywhere from two to six players. The players' colors will be selected from the following options, though not necessarily in this order: red (r), orange (o), yellow (y), green (g), blue (b), and purple (p). The board will be from two to six levels high and completely filled. It will also be a character array wherein the players' squares are represented by a single character per square. In line with the game's rules, all players' colors will be represented on the first level. 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 Solvers33
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8874 Solvers
-
Return a list sorted by number of occurrences
2765 Solvers
-
Matrix with different incremental runs
491 Solvers
-
Remove entire row and column in the matrix containing the input values
348 Solvers
-
85 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!