feodorv respondido 3 years ago
Initially we have the following children (arranged in a counterclockwise direction):
- Maria, Pedro, Joao_Vitor, Isabel, Laura
Current child is Maria with number 7 (so counting is done counterclockwise):
- Maria -> Pedro(1) -> Joao_Vitor(2) -> Isabel(3) -> Laura(4) -> Maria(5) -> Pedro(6) -> Joao_Vitor(7)
After first step the currect child becomes Joao_Vitor and he left the game. His number is 5 (so the counting is done in a counterclockwise direction):
Joao_Vitor -> Isabel(1) -> Laura(2) -> Maria(3) -> Pedro(4) -> Isabel(5)
After second step the currect child becomes Isabel and she left the game. Her number is 12 (so counting is done clockwise):
- Laura(12) <- Maria(11) <- Pedro(10) <- Laura(9) <- Maria(8) <- Pedro(7) <- Laura(6) <- Maria(5) <- Pedro(4) <- Laura(3) <- Maria(2) <- Pedro(1) <-
Isabel
After third step the currect child becomes Laura and she left the game. Her number is 8 (so counting is done clockwise):
- Maria(8) <- Pedro(7) <- Maria(6) <- Pedro(5) <-Maria(4) <- Pedro(3) <- Maria(2) <- Pedro(1) <-
Laura
Maria is left the game. The only active child is Pedro. He is a winner.