Player lost message and all players lost #6
-
I have 2 questions related to player lost situation.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Judging from other discussions, it is also possible that you return null instead of an empty array when all player die (i.e., game ends and no winners). |
Beta Was this translation helpful? Give feedback.
That is the race you need to deal with when doing multithreading programing. The consistent behavior should be that there is only one winning message.
If two winning messages pop up, the
serializability
property is violated, i.e., if we only use one thread to deal with all players, there is never the case that two winning messages are shown.It should go back to main menu. It should be a bug. But, this is not part of the grading scheme of PA3. So whether or not returning to main menu will not affect the hidden tests.