Which person wins the game? Find the person who removes the last balls from the bag.

41 Views Asked by At

I have a game. Suppose the ball is in the bag and each person can take 1, 2, 3, or 4 balls out of the bag at each stage. Assuming that each participant (participants A and B) knows how many balls are in the bag and that each person makes the best move in turn, how do we know which one wins?

We only know the number of balls in the bag (also those two people move accordingly)

For example, imagine we have 6 balls in the bag. A is the winner (the best moves of the players)