Help Me Solving Problem In C Lang

Discussion in 'C' started by wagmare, May 14, 2008.

  1. wagmare

    wagmare New Member

    Joined:
    May 14, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    soft.engg
    Location:
    Bangalore
    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....
     
  2. listendinesh

    listendinesh New Member

    Joined:
    Aug 3, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    Starting from user, If sticks picked by user is say 'n' then computer should pick '5-n' sticks. Keep this logic in loop.
     
  3. wagmare

    wagmare New Member

    Joined:
    May 14, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    soft.engg
    Location:
    Bangalore
    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 :
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice