Re: Flex, loops, and calculations
From: Bill Spight (bspight_at_pacXbell.net)
Date: 05/26/04
- Next message: flapper: "Re: Forth and Prolog"
- Previous message: Andreas Kochenburger: "Re: Forth and Prolog"
- In reply to: Harry: "Flex, loops, and calculations"
- Next in thread: apm: "Re: Flex, loops, and calculations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 May 2004 07:18:49 GMT
Dear Harry,
> I'm trying to do some calculations in a loop, like:
>
> while player`s health is greater than 0 and Enemy`s health is greater
> than 0
> do
> Round is Round + 1
Suppose that Round = 0. Then what
Round is Round + 1
says is that
0 = 0 + 1
which is false.
In Prolog you need to say something like
Round1 is Round0 + 1
Hope that helps. :-)
Best wishes,
Bill
- Next message: flapper: "Re: Forth and Prolog"
- Previous message: Andreas Kochenburger: "Re: Forth and Prolog"
- In reply to: Harry: "Flex, loops, and calculations"
- Next in thread: apm: "Re: Flex, loops, and calculations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|