Help Me Solving Problem In C Lang

wagmare's Avatar, Join Date: May 2008
Go4Expert Member
HI friends and experts,
I am a budding programmer and i am performing some programs to improve my C skill and can u help me in solving the most blogging .. program... a game ...
The program is :
there are 21 match sticks and user and comp has to pick the match sticks one by one starting from user . person can pick up either 1,2,3,4 match sticks in his turn and finally the person draws the last stick loses...
this is the gaming program and i try and still trying and i kindly request the members of any one help me....
listendinesh's Avatar, Join Date: Aug 2007
Go4Expert Member
Starting from user, If sticks picked by user is say 'n' then computer should pick '5-n' sticks. Keep this logic in loop.
wagmare's Avatar, Join Date: May 2008
Go4Expert Member
thanks ,
thats clean and short u are really good and once agai i thank you very much ..
i execute the program and got the result with help of u in great share.
by wagmare :