EasyManua.ls Logo

Casio FX-795P

Casio FX-795P
133 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER
6
Program
Library
—_—
@
Variables
List
7
Variable
Role
Variable
Role
AS
For
keys
and
characters
K
Loop
control
variable
A(1,
1)
|
Position
of
the
spade
(
#)|[M
For
calculating
prize
A(i,
2)
|
Position
of
the
heart
(
#)
N
For
horse
number
A(1,
3)
|
Position
of
the
diamond
Pp
Number
of
players
(#)
A(1,4)
Position
of
the
club
(
#)
R
Race
number
A(Q,1)
Random
number
of
(#)
~
|
X(1,
0
Player
1’s
bet
A(2,
2)
Random
number
of
(
#
)
X
(1,2)
|
Player
2’s
bet
A
(2,
3)
Random
number
of
(
#
)
i
:
A(2,4)
|
Random
numiber
of
(
#)
:
:
A(3,1)
|
Oddson(
#)
X
(1,
P)
.|
Player
P’s
bet
A(3,2)
|
Odds
on(
#)
X(2,1)
|
Player
1’s
holdings
A(3,3)
|
Odds
on
(#)
X
(2,2)
|
Player
2’s
holdings
A(3,4)
|
Odds
on(
#)
: :
F
For
determining
game
over’
|
*
G
For
determining
goal
X(2,P)
|
Player
P’s
holdings
:
For
selecting
a
horse’s
character
H
Odds
on
winning
horse
$
(#,
#,
Hor
h)
I
Loop
control
variable
128
6-2
Horse
Race
Game
—_—_—_—<———
e@
Game
Description
One
to
five
persons
can
play
this
game
with
each
player
starting
with
$20.00.
There
are
4
horses
numbered
from
1
to
4
with
1
being
the
spade
#
,
2
the
heart
#
,
3
the
diamond
#,
and
4
the
club
#
.
Select
a
horse
from
1
to
4.
A
player
selecting
0
passes
a
race
since
there
is
no
horse
numbered
0.
The
odds
on
each
horse’
are
displayed
for
each
race.
If
the
horse
selected
by
a
player
wins,
the
player
receives
an
amount
equal
to
the
odds
times
his
bet.
If
the
selected
horse
does
not
win,
the
player
loses
his
bet.
If
a
player’s
holdings
drop
to
0,
he
must
drop
out
of
the
game.
Game
is
over
when
all
player’s
lose
their
holdings.
Following
is
a
description
of
the
sequential
displays
and
key
operations
in
a
sample
game.
1)
Start
game.
IWIN
xt)
(Displays
title.)
(Describes
horse.)
2)
Input
number
of
players.
How
tans
Players
7
2
(Enters
2
for
two
players.)
Su
cr)
(nitial
holding.)
ALL
PLAYERS
HAVE
$28
(First
race.)
:
FE
A C E
i
3)
Input
horse
and
bet.
(Holdings
of
player
1)
P L
A
i E R
2
A
(Odds
displayed.)
RATE
#
#7
12
4
2)
3
3}
4
4
4
4
(Inputs
horse
of
player
1.))
FE
i+
#
2
oe
+
7
a
i?
Selects
#
horse)
PLAYER
1
#
MONEY
?
Ve
(Bets
$10.00)
180
(exe)
(Holdings
of
player
2)
PLAYER
(Odds
displayed.)
FATE
#*
aod
{Inputs
horse
of
player
2.)
FE
SS
é*
4
1
7
(3)
(Seiects
#
horse.)
F L A
Wy
E
FE
(5S)
(Bets
$5.00)
sa
tl
oe
129

Related product manuals