--- Anu Samkaria <[EMAIL PROTECTED]>
wrote:
> Dear Rajesh,
> The logic behind the puzzle is very simple. This is
> as follows
>
> 1. The program such that user pick will be first.
> 2. When the user pick any number of match stick say
> for example 2 the computer should make pick 3 and
> make the count 5.
> User pick + computer pick = 5
> 3. So the last left stick will be with user only
> that is 1 and this way the game will be won by
> computer.
>
> I think this logic will work. If I am mistaken
> somewhere please correct me so that I will also
> learn new thing.
> Regards
> Anu samkaria
>
> hi
> i just wanna logic for this game
>
> write a program for the match-stick game between the
> computer and a
> user .your program should ensure that the the
> computer always win .
> rules for the game are as follows ;a.there are 21
> match sticks and the
> computer ask the player to pick 1,2,3,4 match sticks
> .afrer the person
> picks the computer does its picking whoever is
> forced to pick up the
> last match stick loses the game
>
> thanks in advance
> bye
>
> hi how ru..............
Ur logic is that the computer ask the
player to pick 1,2,3,4 match sticks after the person
picks the computer does its picking but compter picks
the sticks [computer picks=(5-user pick the sticks)
]here user only allow to picks 1,2,3,4 only.
main()
{
}
__________________________________
Do you Yahoo!?
All your favorites on one personal page � Try My Yahoo!
http://my.yahoo.com
>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at
http://www.eScribe.com/software/C-Paradise/
>------------------------------------------_->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/C-Paradise/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/