Optimam game strategy

we are calculating max points player 1 can get is this not possible that after getting max points he losses , for ex if total of coins is 10 and he gets at max 4 so he can loss

@deepakjumani09 how can the player lose if he got the max points?

ok but why are we taking min for the 2nd fn call

@deepakjumani09 we want the winner to score the maximum points, and want that the opponent should score less points (to increase margin)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.