Help Me Solving Problem In C Lang

Go4Expert Member
14May2008,12:19   #1
wagmare's Avatar
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....
Go4Expert Member
15May2008,01:36   #2
listendinesh's Avatar
Hi,
Starting from user, If sticks picked by user is say 'n' then computer should pick '5-n' sticks. Keep this logic in loop.
Go4Expert Member
15May2008,11:13   #3
wagmare's Avatar
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 :