As a continue to this question: How can I know if a pile in "Grundy's game" have a winning strategy?:
I'm talking about "Grundy's game".
I understand from the answer that if I have one pile of $20$ is loosing position because $n(20)=0$,
but if I split it to $19,1$ , I get: $n(19)+n(1) = 3>0$ - and this winning
position.
So my question is: how I can know if I have winning strategy or not?
Assume that is my turn now and I have one pile of $20$, I can win or not?
If yes, what is me next move?
Thank you!
It is important to understand what "winning position" and "losing position" mean. These terms are relative to the player to move, not relative to yourself.
"Winning position" means that the player to move can win.
"Losing position" means that the player to move will lose.
If it is your move on a pile of 20, and you split 20 into 19,1, it is a winning position (as you calculated), but it is now your opponent's move, which means your opponent is the one winning, not you.