yes the below logic is correct
1-> 1st(1)
2-> 1st(2)
3-> 2nd(1,2 or 2,1)
4-> 1st (1,2,1 or 1,1,2)
5->1st(2, 1, 2 or 2, 2, 1)
6-> 2nd(2, 1, 3) or 1, 2,3)) 2nd will win
7-> 1st(1, 1, 2, 3 or 1, 2, 1,3  or .,.
8-> 1st (2, 1, 2, 3 or 2, 2,1, 3 or ..

In above 3 can be (1,2) or (2,1)

Thanks
Kumar Anurag

On Sat, Jan 12, 2013 at 10:11 PM, Lucifer <sourabhd2...@gmail.com> wrote:

>
> @siva..
>
> if (n%3 == 0)
>       "Player 1 will lose"
> else
>       "Player 1 will win. The no. of balls picked in the first turn will
> be n%3"
>
> --
>
>
>



-- 
Kumar Anurag

-- 


Reply via email to