Replies: 1 comment
-
|
Return empty array when all players die since in this case, there are no winners and the game ends. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
javadoc states that "@return null if the game has not finished yet; otherwise emtpy array if there is no winners, or non-empty array if there are winners."
"the game has not finished yet" means that there are still gems on the board. If all players die, there must be gems on the board.
So when all players die, should we
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions