Bahut confusion hai!

Let’s say lets say we have 3 piles containing [2,4,6] coins . A and B 2 players and A move first and can pick any no of coin from a single pile in one of his move . (Simpe NIM)

Case 1. Those picks last coin wins .
sol : if 2^4^6 !=0 A wins o.w. B wins .

Case 2 . Those picks last coin lose .
sol : if 2^4^6 !=0 A wins o.w. B wins .

This is what taught in webinar .
Is this true , that it doest matter what is rule for winning , its completely depends on xor of coins all piles that either it is 0 or not . In both case 0 means A win and !0 means B win ???

Hey @Sus
Yeah exactly
So the logic still remains the same right
Check if xor is 0
If it is the opponent will lose
Else you will lose

If your doubt is resolved please close it.

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.