Skip to content
Snippets Groups Projects
Commit 97062fb0 authored by qingyuw2's avatar qingyuw2
Browse files

add inline comment

parent b2d4010d
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,7 @@ public class Game {
* @return index of next player
*/
public int nextTurn() {
// Mod operation that gives positive number only
return (((turn + order) % numOfPlayers) + numOfPlayers) % numOfPlayers;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment