DIM SHARED sf!
, uf!
, j
, bn
, x
, q
, fr&
, bhu
, bht
, top
(1 TO 6) AS STRING * 7, mdd
(1 TO 6) AS STRING * 7, bot
(1 TO 6) AS STRING * 7, cha
(1 TO 16), che
(1 TO 16), lot
(39) AS dd
, st
(1 TO 2) AS pl
mb
md
swbd
cont t, nos
rules
bhu = 32
bht = 12
init
t = 1
LOCATE lot
(st
(1).whr
).od
, lot
(st
(1).whr
).oa
LOCATE lot
(st
(2).whr
).id
, lot
(st
(2).whr
).ia
t = 3 - t
1
nos = -1
ce 10, "The save is faulty."
ce 11, "I will delete it."
p
nos = -1
box
ce
5, "Crash " + lts
(ERR) + " has happened."ce 7, "Take note of what was going on just before the crash."
ce 9, "Contact me at grahambhg@yahoo.com,"
ce 10, "and I will see what I can do."
crd
DATA ,,o
,,,,,,,,,,23,78,21,72,, DATA Mediterranean Avenue
,MEDIT
,b
,60,2,10,30,90,160,250,50,5,23,68,21,68,22,65 DATA ,,o
,,,,,,,,,,23,61,21,61,, DATA Baltic Avenue
,BALTI
,b
,60,4,20,60,180,320,450,50,5,23,54,21,54,22,51 DATA ,,o
,,,,,,,,,,23,47,21,47,, DATA Reading Railroad
,READR
,r
,200,,25,50,100,200,,,7,23,40,21,40,, DATA Oriental Avenue
,ORIEN
,b
,100,6,30,90,270,400,550,50,11,23,33,21,33,22,30 DATA ,,o
,,,,,,,,,,23,26,21,26,, DATA Vermont Avenue
,VERMO
,b
,100,6,30,90,270,400,550,50,11,23,19,21,19,22,16 DATA Conneticut Avenue
,CONNE
,b
,120,8,40,100,300,450,600,50,11,23,12,21,12,22,9 DATA ,,o
,,,,,,,,,,23,2,21,8,, DATA Saint Charles Place
,STCHA
,b
,140,10,50,150,450,625,750,100,13,20,2,20,9,20,8 DATA Electric Company
,ELECT
,u
,150,,,,,,,,7,18,2,18,9,, DATA States Avenue
,STATE
,b
,140,10,50,150,450,625,750,100,13,16,2,16,9,16,8 DATA Virginia Avenue
,VIRGI
,b
,160,12,60,180,500,700,900,100,13,14,2,14,9,14,8 DATA Pennsylvania Railroad
,PENRR
,r
,200,,25,50,100,200,,,7,12,2,12,9,, DATA Saint James Place
,STJAM
,b
,180,14,70,200,550,750,950,100,12,10,2,10,9,10,8 DATA ,,o
,,,,,,,,,,8,2,8,9,, DATA Tennessee Avenue
,TENNE
,b
,180,14,70,200,550,750,950,100,12,6,2,6,9,6,8 DATA New York Avenue
,NEWYO
,b
,200,16,80,220,600,800,1000,100,12,4,2,4,9,4,8 DATA ,,o
,,,,,,,,,,1,2,3,8,, DATA Kentucky Avenue
,KENTU
,b
,220,18,90,250,700,875,1050,150,4,1,12,3,12,2,15 DATA ,,o
,,,,,,,,,,1,19,3,19,, DATA Indiana Avenue
,INDIA
,b
,220,18,90,250,700,875,1050,150,4,1,26,3,26,2,29 DATA Illinois Avenue
,ILLIN
,b
,240,20,100,300,750,925,1100,150,4,1,33,3,33,2,36 DATA B. & O. Railroad
,B&ORR
,r
,200,,25,50,100,200,,,7,1,40,3,40,, DATA Atlantic Avenue
,ATLAN
,b
,260,22,110,330,800,975,1150,150,14,1,47,3,47,2,50 DATA Ventnor Avenue
,VENTN
,b
,260,22,110,330,800,975,1150,150,14,1,54,3,54,2,57 DATA Water Works
,WATER
,u
,150,,,,,,,,7,1,61,3,61,, DATA Marvin Gardens
,MARVI
,b
,280,24,120,360,850,1025,1200,150,14,1,68,3,68,2,71 DATA ,,o
,,,,,,,,,,1,78,3,72,, DATA Pacific Avenue
,PACIF
,b
,300,26,130,390,900,1100,1275,200,10,4,78,4,71,4,72 DATA North Carolina Avenue
,NORTH
,b
,300,26,130,390,900,1100,1275,200,10,6,78,6,71,6,72 DATA ,,o
,,,,,,,,,,8,78,8,71,, DATA Pennsylvania Avenue
,PENAV
,b
,320,28,150,450,1000,1200,1400,200,10,10,78,10,71,10,72 DATA Short
Line,SHORT
,r
,200,,25,50,100,200,,,7,12,78,12,71,, DATA ,,o
,,,,,,,,,,14,78,14,71,, DATA Park Place
,PARKP
,b
,350,35,175,500,1100,1300,1500,200,9,16,78,16,71,16,72 DATA ,,o
,,,,,,,,,,18,78,18,71,, DATA Boardwalk
,BOARD
,b
,400,50,200,600,1400,1700,2000,200,9,20,78,20,71,20,72
ce 10, "You landed on Go."
st(t).c = st(t).c + 200
ce 11, "Collect $400."
ce 11, "Collect $200."
p
dche t
inc t
dcha t
ce 10, "Just visiting"
p
ce 10, "Free Parking"
ce 11, "You get $" + ltsb(fr&)
st(t).c = st(t).c + fr&
fr& = 500
p
ar t
ce 10, "Luxury Tax. Pay $75."
p
pay t, 75
p
lop rl, t
ak = tx$
ce
9, RTRIM$(st
(t
).ft
) + " will be sent directly to Jail."p
st(t).whr = -10
st(t).dc = 0
box
lwst
= INT(.5 + lot
(st
(t
).whr
).c
/ 10)nw = lwst
box
ce
5, RTRIM$(lot
(st
(t
).whr
).ttl
)ce
6, RTRIM$(st
(1).ft
) + ", you have $" + ltsb
(st
(1).c
)ce 7, "Do I hear $" + lts(nw) + "?"
IF cr
(1) + st
(1).c
>= nw
THEN ce
8, "(Y/N)" ELSE ce
8, "press N to Not bid." ce 10, " I hear $" + lts(nw)
nw = nw + bj
bidder = 1
ce
10, RTRIM$(st
(1).ft
) + " passes first bid."clk .5
box
ce
5, RTRIM$(lot
(st
(t
).whr
).ttl
)ce
6, RTRIM$(st
(2).ft
) + ", you have $" + ltsb
(st
(2).c
)ce 7, "Do I hear $" + lts(nw) + "?"
IF cr
(2) + st
(2).c
>= nw
THEN ce
8, "(Y/N)" ELSE ce
8, "press N to Not bid." ce 10, " I hear $" + lts(nw)
nw = nw + bj
bidder = 2
ce 9, "Going, going, going..."
clk .5
ce 11, "No sale!"
p
pay 1, lwst
ce
10, RTRIM$(lot
(st
(t
).whr
).ttl
)lot(st(t).whr).own = 1
p
who = 1
box
ce
5, RTRIM$(lot
(st
(t
).whr
).ttl
)ce
6, RTRIM$(st
(who
).ft
) + ", you have $" + ltsb
(st
(who
).c
)ce 7, "Do I hear $" + lts(nw) + "?"
IF cr
(who
) + st
(who
).c
>= nw
THEN ce
8, "(Y/N)" ELSE ce
8, "press N to Not bid." ce 10, " I hear $" + lts(nw)
nw = nw + bj
bidder = who
ce 9, "Going, going, going..."
done = -1
clk .5
who = 3 - who
ce
10, RTRIM$(lot
(st
(t
).whr
).ttl
)pay bidder, nw - bj
lot(st(t).whr).own = bidder
p
hss = chou(t)
hts = chot(t)
ce
8, RTRIM$(st
(t
).ft
) + ", you have " + lts
(hss
) + " house(s) and " + lts
(hts
) + " hotel(s)."fee = hss * houf + hts * hotf
ce 9, "$" + lts(fee) + " due."
p
pay t, fee
p
box
v = cr(t)
ce
5, RTRIM$(st
(t
).ft
) + ", you need to raise $" + lts
(ABS(owe
))ce 6, "You can raise $" + lts(v)
ce 12, "YOU ARE BROKE!!"
ce 16, "press Q to Quit game"
gov 3 - t
ce 9, "press 4 to mortgage properties"
ce 10, "press 5 to sell houses"
ce 11, "press 6 to sell hotels"
ce 13, "press 8 to see inventories"
ce 14, "press 9 to view deeds"
ce 16, "press Q to Quit game"
mort t
shou t
swbs
shot t
swbs
inv
vwd
box
gm(0) = -1
box
gm(1) = -1
mini 1
gm(2) = -1
mini 2
IF lot
(11).own
= t
AND lot
(11).stat
= 4 AND st
(t
).c
>= 100 AND bht
> 0 THEN gm(3) = -1
mini 3
IF lot
(16).own
= t
AND lot
(16).stat
= 4 AND st
(t
).c
>= 100 AND bht
> 0 THEN gm(4) = -1
mini 4
IF lot
(21).own
= t
AND lot
(21).stat
= 4 AND st
(t
).c
>= 150 AND bht
> 0 THEN gm(5) = -1
mini 5
IF lot
(26).own
= t
AND lot
(26).stat
= 4 AND st
(t
).c
>= 150 AND bht
> 0 THEN gm(6) = -1
mini 6
IF lot
(31).own
= t
AND lot
(31).stat
= 4 AND st
(t
).c
>= 200 AND bht
> 0 THEN gm(7) = -1
mini 7
IF lot
(37).own
= t
AND lot
(37).stat
= 4 AND st
(t
).c
>= 200 AND bht
> 0 THEN gm(8) = -1
mini 8
ce 10, "Choose a monopoly to buy hotels for"
ce 11, "or 0 to continue"
box
pim wlb, l, m, h
max = 3
IF lot
(h
).stat
= 5 THEN max
= 2 IF lot
(m
).stat
= 5 THEN max
= 1 IF max
> INT(st
(t
).c
/ lot
(l
).bc
) THEN max
= INT(st
(t
).c
/ lot
(l
).bc
) ce 7, "you can buy up to " + lts(max) + " hotel(s)."
ce 8, "or 0 to continue"
ce 10, "you have $" + ltsb(st(t).c)
ce 11, "hotels cost $" + lts(lot(l).bc) + " (plus four houses) each."
quan = ner(9, max)
tot = lot(l).stat + lot(m).stat + lot(h).stat + quan
lot
(h
).stat
= INT(tot
/ 2)lot
(l
).stat
= INT(tot
/ 2)IF lot
(h
).stat
+ lot
(l
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 lot
(h
).stat
= INT(tot
/ 3)lot
(m
).stat
= INT(tot
/ 3)lot
(l
).stat
= INT(tot
/ 3)IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(m
).stat
= lot
(m
).stat
+ 1 pay t, lot(l).bc * quan
p
bht = bht - quan
bhu = bhu + quan * 4
gm(0) = -1
box
gm(1) = -1
mini 1
gm(2) = -1
mini 2
gm(3) = -1
mini 3
gm(4) = -1
mini 4
gm(5) = -1
mini 5
gm(6) = -1
mini 6
gm(7) = -1
mini 7
gm(8) = -1
mini 8
ce 10, "Choose a monopoly to buy houses for"
ce 11, "or 0 to continue"
box
pim wlb, l, m, h
max = 8 - lot(l).stat - lot(h).stat
max = 12 - lot(l).stat - lot(m).stat - lot(h).stat
IF max
> INT(st
(t
).c
/ lot
(l
).bc
) THEN max
= INT(st
(t
).c
/ lot
(l
).bc
) ce 7, "you can buy up to " + lts(max) + " house(s)."
ce 8, "or 0 to continue"
ce 10, "you have $" + ltsb(st(t).c)
ce 11, "houses cost $" + lts(lot(l).bc) + " each."
quan = ner(9, max)
tot = lot(l).stat + lot(m).stat + lot(h).stat + quan
lot
(h
).stat
= INT(tot
/ 2)lot
(l
).stat
= INT(tot
/ 2)IF lot
(h
).stat
+ lot
(l
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 lot
(h
).stat
= INT(tot
/ 3)lot
(m
).stat
= INT(tot
/ 3)lot
(l
).stat
= INT(tot
/ 3)IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(m
).stat
= lot
(m
).stat
+ 1 pay t, lot(l).bc * quan
p
IF lot
(l
).own
= lot
(m
).own
AND lot
(m
).own
= lot
(h
).own
AND lot
(l
).own
> 0 THEN lot(l).mop = -1
lot(m).mop = -1
lot(h).mop = -1
lot(l).mop = 0
lot(m).mop = 0
lot(h).mop = 0
IF lot
(sq
).sty
= "b" AND lot
(sq
).own
= t
AND lot
(sq
).stat
= 5 THEN ced
= ced
+ 1 chot = ced
IF lot
(sq
).sty
= "b" AND lot
(sq
).own
= t
AND lot
(sq
).stat
< 5 THEN ced
= ced
+ lot
(sq
).stat
chou = ced
ce 5, "I found a save."
ce 7, "Do you want to continue prior game? (Y/N)"
p
nos = -1
IF (st
(sq
).whr
< 0 OR st
(sq
).whr
> 39) AND st
(sq
).whr
<> -10 THEN GOTO oops
upd
oops:
IF (NOT lot
(sq
).hk
) THEN current
= current
+ lot
(sq
).c
/ 2 IF lot
(sq
).sty
= "b" THEN current
= current
+ lot
(sq
).bc
* lot
(sq
).stat
* sf!
cr = current
ce 12, "Program written by Brian H. Graham."
ce 13, "Based on the board game 'Monopoly' by Parker Brothers."
p
IF lot
(sq
).hk
THEN current
= current
+ lot
(sq
).c
/ 2 ELSE current
= current
+ lot
(sq
).c
IF lot
(sq
).sty
= "b" THEN current
= current
+ lot
(sq
).bc
* lot
(sq
).stat
cw = current + st(t).c
IF cha
(look
) > 0 THEN ucha
= ucha
+ 1 box
cha(cd) = 1
ce 6, "Chance"
ce 7, "Advance to Go. (Collect $200.)"
p
move 40 - st(t).whr, t
p
ce 7, "Advance to Illinois Avenue."
p
IF st
(t
).whr
< 24 THEN move
24 - st
(t
).whr
, t
ELSE move
64 - st
(t
).whr
, t
lop rl, t
ce 7, "Advance to the nearest Utility."
ce 8, "If it is owned, roll the dice,"
ce 9, "and pay the own ten times the amount shown."
ce 10, "If it is not owned, you may buy it."
p
move 12 - st(t).whr, t
move 28 - st(t).whr, t
move 52 - st(t).whr, t
utc t
ce 7, "Advance to the next Railroad."
ce 8, "If it is owned, pay the own double"
ce 9, "the rent he/she is usually entitled."
ce 10, "If it is not owned, you may buy it."
p
move 15 - st(t).whr, t
move 25 - st(t).whr, t
move 45 - st(t).whr, t
rlc t
ce 7, "Advance to Saint Charles Place."
ce 8, "If you pass Go, collect $200."
p
IF st
(t
).whr
< 11 THEN move
11 - st
(t
).whr
, t
ELSE move
51 - st
(t
).whr
, t
lop rl, t
ce 7, "Bank pays you dividend of $50."
st(t).c = st(t).c + 50
p
ce 7, "Get out of Jail free."
ce 8, "This card may be kept until used or traded."
cha(8) = 2
st(t).chag = -1
p
ce 7, "Go back three spaces."
p
mob t
act rl, t
ce 7, "Go directly to Jail."
ce 8, "Do not pass Go, Do not collect $200."
p
ar t
ce 7, "Make general repairs on all you properties."
ce 8, "Pay $25 per house, $100 per hotel."
bca t, 25, 100
ce 7, "Pay poor tax of $15."
p
pay t, 15
p
ce 7, "Take a ride on the Reading."
ce 8, "Advance to Reading Railroad."
ce 9, "Collect $200 if you pass Go."
p
move 45 - st(t).whr, t
lop rl, t
ce 7, "Take a walk on the boardwalk."
ce 8, "Advance to Boardwalk."
p
move 39 - st(t).whr, t
lop rl, t
ce 7, "You have been elected chairman of the board."
ce 8, "Pay each player $50."
p
popp t, 50
ce 7, "Your building and loan matures. Collect $150."
st(t).c = st(t).c + 150
p
IF che
(look
) > 0 THEN uche
= uche
+ 1 box
che(cd) = 1
ce 6, "Community Chest"
ce 7, "Advance to Go. (Collect $200.)"
p
move 40 - st(t).whr, t
p
ce 7, "Bank error in your favor. Collect $200."
p
st(t).c = st(t).c + 200
ce 7, "Christmas fund matures. Collect $100."
p
st(t).c = st(t).c + 100
ce 7, "Doctor's fee. Pay $50."
p
pay t, 50
p
ce 7, "From sale of stock you get $45."
p
st(t).c = st(t).c + 45
ce 7, "Get out of Jail free."
ce 8, "This card may be kept until used or traded."
che(6) = 2
st(t).cheg = -1
p
ce 7, "Go directly to Jail."
ce 8, "Do not pass Go, Do not collect $200."
p
ar t
ce 7, "Grand opera opening. Collect $50 from every player."
p
popp 3 - t, 50
ce 7, "Income tax refund. Collect $20."
p
st(t).c = st(t).c + 20
ce 7, "Life insurance matures. Collect $100."
p
st(t).c = st(t).c + 100
ce 7, "Pay hospital $100."
p
pay t, 100
p
ce 7, "Pay school tax of $150."
p
pay t, 150
p
ce 7, "Recieve for services $25."
p
st(t).c = st(t).c + 25
ce 7, "You are assesed for street repairs."
ce 8, "$40 per house, $115 per hotel."
bca t, 40, 115
ce 7, "You have won second prize in a beauty contest."
ce 8, "Collect $10."
p
st(t).c = st(t).c + 10
ce 7, "You inherit $100."
p
st(t).c = st(t).c + 100
di = d1 + d2
ce 15, top(d1) + top(d2)
ce 16, mdd(d1) + mdd(d2)
ce 17, bot(d1) + bot(d2)
SUB fd
(rl1
, rl2
, d1
, d2
, d3
, d4
) rl1 = d1 + d2
rl2 = d3 + d4
ce
15, top
(d1
) + top
(d2
) + SPACE$(6) + top
(d3
) + top
(d4
)ce
16, mdd
(d1
) + mdd
(d2
) + SPACE$(6) + mdd
(d3
) + mdd
(d4
)ce
17, bot
(d1
) + bot
(d2
) + SPACE$(6) + bot
(d3
) + bot
(d4
)
st(1).whr = 0
st(2).whr = 0
x = -1
swbd
ce 5, "This game was a tie!"
ce
7, "Thank you for playing " + RTRIM$(st
(1).ft
) + " and " + RTRIM$(st
(2).ft
)ce
5, RTRIM$(st
(t
).ft
) + " has won!!!"ce
8, "Better luck next time " + RTRIM$(st
(3 - t
).ft
)crd
box
ce 6, "Income Tax"
ce 8, "press W to pay 10% of your Worth"
ce 9, "press F to pay $200 Flat rate"
ce
10, UCASE$(taxopt$
) + ", $" + lts
(fee
) + " due."p
pay t, fee
p
wide$
= wide$
+ MID$(alto$
, wide
, 1) + " "box
ce 5, "Player " + lts(sq) + " first name"
who$ = ""
ltr$ = txk
ce 6, who$
st(sq).ft = who$
ce 7, "pick a token"
ce 8, wide$
ce 9, "1 2 3 4 5 6 7 8 9 0"
hide = pick
st
(sq
).tk
= MID$(alto$
, hide
, 1)st(sq).c = 1500
ce 11, lts(pick) + ", " + st(sq).tk
p
box
fd rl1, rl2, d1, d2, d3, d4
ce 5, "Determining who goes first:"
ce
7, RTRIM$(st
(1).ft
) + " rolls " + lts
(d1
) + " + " + lts
(d2
) + " = " + lts
(rl1
)ce
8, RTRIM$(st
(2).ft
) + " rolls " + lts
(d3
) + " + " + lts
(d4
) + " + " + lts
(rl2
)ce 10, "No decision. I will try again."
p
ce
10, "This means " + RTRIM$(st
(1).ft
) + " goes first."p
box
lil 1
lil 3
lil 5
lil 6
lil 8
lil 9
lil 11
lil 12
lil 13
lil 14
lil 15
lil 16
lil 18
lil 19
lil 21
lil 23
lil 24
lil 25
lil 26
lil 27
lil 28
lil 29
lil 31
lil 32
lil 34
lil 35
lil 37
lil 39
ce 14, "unowned properties"
IF j
THEN ce
16, "Free Parking has $" + ltsb
(fr&
) ce
14, RTRIM$(st
(look
).ft
) + ", your properties"ce 15, "you are the " + st(look).tk
IF st
(look
).c
>= 0 THEN ce
16, "you have $" + ltsb
(st
(look
).c
) ELSE ce
16, "you need to raise $" + lts
(ABS(st
(look
).c
)) p
IF lot
(st
(t
).whr
).own
= 0 THEN noo t
IF lot
(st
(t
).whr
).own
= t
THEN ce
12, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 13, "is yours."
p
ce
12, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 13, "is mortgaged."
p
IF lot
(st
(t
).whr
).mop
THEN popp t
, lot
(st
(t
).whr
).r
* 2 ELSE popp t
, lot
(st
(t
).whr
).r
IF lot
(st
(t
).whr
).sty
= "u" THEN popp t
, 4 * rl
ELSE popp t
, lot
(st
(t
).whr
).r1
IF lot
(st
(t
).whr
).sty
= "u" THEN popp t
, 10 * rl
ELSE popp t
, lot
(st
(t
).whr
).r2
popp t, lot(st(t).whr).r3
popp t, lot(st(t).whr).r4
popp t, lot(st(t).whr).rhot
top(1) = p0$
mdd(1) = p1b$
bot(1) = p0$
top(2) = p1a$
mdd(2) = p0$
bot(2) = p1c$
top(3) = p1a$
mdd(3) = p1b$
bot(3) = p1c$
top(4) = p2$
mdd(4) = p0$
bot(4) = p2$
top(5) = p2$
mdd(5) = p1b$
bot(5) = p2$
top(6) = p2$
mdd(6) = p2$
bot(6) = p2$
dn = 5
ac = 11
mophue = 5
mopstr$ = "MEDIT/BALTI"
dn = 6
ac = 11
mophue = 11
mopstr$ = "OREIN/VERMO/CONNE"
dn = 7
ac = 11
mophue = 13
mopstr$ = "STCHA/STATE/VIRGI"
dn = 8
ac = 11
mophue = 12
mopstr$ = "STJAM/TENNE/NEWYO"
dn = 5
ac = 41
mophue = 4
mopstr$ = "KENTU/INDIA/ILLIN"
dn = 6
ac = 41
mophue = 14
mopstr$ = "ATLAN/VENTN/MARVI"
dn = 7
ac = 41
mophue = 10
mopstr$ = "PACIF/NORTH/PENAV"
dn = 8
ac = 41
mophue = 9
mopstr$ = "PARKP/BOARD"
IF t
= 1 THEN LOCATE lot
(st
(1).whr
- sq
).od
, lot
(st
(1).whr
- sq
).oa
ELSE LOCATE lot
(st
(2).whr
- sq
).id
, lot
(st
(2).whr
- sq
).ia
IF t
= 1 THEN LOCATE lot
(st
(1).whr
- sq
- 1).od
, lot
(st
(1).whr
- sq
- 1).oa
ELSE LOCATE lot
(st
(2).whr
- sq
- 1).id
, lot
(st
(2).whr
- sq
- 1).ia
clk .1
st(t).whr = (st(t).whr - 3)
box
ce
5, RTRIM$(st
(t
).ft
) + ", you have $" + ltsb
(st
(t
).c
)ce 6, "press 1 to unmortgage properties"
ce 7, "press 2 to buy houses"
ce 8, "press 3 to buy hotels"
ce 9, "press 4 to mortgage properties"
ce 10, "press 5 to sell houses"
ce 11, "press 6 to sell hotels"
ce 12, "press 7 to trade"
ce 13, "press 8 to see inventories"
ce 14, "press 9 to view deeds"
ce 15, "press any other key to continue"
unm t
buhou t
swbs
buhot t
swbs
mort t
shou t
swbs
shot t
swbs
trade
upd
inv
vwd
gp(0) = -1
box
dy 1
gp(1) = -1
dy 3
gp(3) = -1
dy 5
gp(5) = -1
dy 6
gp(6) = -1
dy 8
gp(8) = -1
dy 9
gp(9) = -1
dy 11
gp(11) = -1
dy 12
gp(12) = -1
dy 13
gp(13) = -1
dy 14
gp(14) = -1
dy 15
gp(15) = -1
dy 16
gp(16) = -1
dy 18
gp(18) = -1
dy 19
gp(19) = -1
dy 21
gp(21) = -1
dy 23
gp(23) = -1
dy 24
gp(24) = -1
dy 25
gp(25) = -1
dy 26
gp(26) = -1
dy 27
gp(27) = -1
dy 28
gp(28) = -1
dy 29
gp(29) = -1
dy 31
gp(31) = -1
dy 32
gp(32) = -1
dy 34
gp(34) = -1
dy 35
gp(35) = -1
dy 37
gp(37) = -1
dy 39
gp(39) = -1
ce 14, "Choose a deed to mortgage or 0 to continue"
IF st
(t
).c
>= 0 THEN ce
17, "you have $" + ltsb
(st
(t
).c
) ELSE ce
17, "you need to raise $" + lts
(-st
(t
).c
) pick = ner(15, 39)
lot(pick).hk = -1
st(t).c = st(t).c + lot(pick).c / 2
IF t
= 1 THEN LOCATE lot
((st
(1).whr
+ sq
+ 1) MOD 40).od
, lot
((st
(1).whr
+ sq
+ 1) MOD 40).oa
ELSE LOCATE lot
((st
(2).whr
+ sq
+ 1) MOD 40).id
, lot
((st
(2).whr
+ sq
+ 1) MOD 40).ia
clk .1
IF st
(t
).whr
+ dist
>= 40 THEN st
(t
).c
= st
(t
).c
+ 200 box
ce
5, RTRIM$(st
(t
).ft
) + ", you collect $200 for passing Go."clk .9
st
(t
).whr
= (st
(t
).whr
+ dist
) MOD 40
num = 0
num$ = ""
numk$ = nerk
ce dn, num$
ner = num
num& = 0
num$ = ""
numk$ = nerk
ce dn, num$
nerb& = num&
valid = -1
valid = 0
nerk = tx$
box
ce
5, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 6, "cost $" + lts(lot(st(t).whr).c)
ce 7, "mortgage value $" + lts(lot(st(t).whr).c / 2)
ce 8, "rent $" + lts(lot(st(t).whr).r)
ce 9, "rent with one house $" + lts(lot(st(t).whr).r1)
ce 10, "rent with two houses $" + lts(lot(st(t).whr).r2)
ce 11, "rent with three houses $" + lts(lot(st(t).whr).r3)
ce 12, "rent with four houses $" + lts(lot(st(t).whr).r4)
ce 13, "rent with hotel $" + lts(lot(st(t).whr).rhot)
ce 14, "houses cost $" + lts(lot(st(t).whr).bc) + " each"
ce 15, "hotel costs $" + lts(lot(st(t).whr).bc) + " plus 4 houses"
ce 8, "rent with one Utility, four times dice"
ce 9, "rent with two Utilities, ten times dice"
ce 8, "rent with one Railroad $25"
ce 9, "rent with two Railroads $50"
ce 10, "rent with three Railroads $100"
ce 11, "rent with four Railroads $200"
ce
16, RTRIM$(st
(t
).ft
) + ", you have $" + ltsb
(st
(t
).c
)IF cr
(t
) + st
(t
).c
>= lot
(st
(t
).whr
).c
THEN ce
17, "press B to Buy" ce 18, "press A to Auction"
LOOP UNTIL wt$
= "a" OR (wt$
= "b" AND cr
(t
) + st
(t
).c
>= lot
(st
(t
).whr
).c
) box
pay t, lot(st(t).whr).c
ce
10, RTRIM$(lot
(st
(t
).whr
).ttl
)lot(st(t).whr).own = t
p
auc t
upd
box
ce
5, RTRIM$(st
(t
).ft
) + ", you have $" + ltsb
(st
(t
).c
)ce 6, "press P for Property options"
ce 7, "press S to Save and exit"
ce 8, "press Q to Quit game early"
ce 9, "press any other key to continue"
wt$ = ak
save t
more t
quit
done = -1
ce 19, "press any key."
st(t).c = st(t).c - cge
ce
12, RTRIM$(st
(t
).ft
) + " paid $" + lts
(cge
)
l = 1
m = 2
h = 3
ce 6, "MEDIT/BALTI"
l = 6
m = 8
h = 9
ce 6, "OREIN/VERMO/CONNE"
l = 11
m = 13
h = 14
ce 6, "STCHA/STATE/VIRGI"
l = 16
m = 18
h = 19
ce 6, "STJAM/TENNE/NEWYO"
l = 21
m = 23
h = 24
ce 6, "KENTU/INDIA/ILLIN"
l = 26
m = 27
h = 29
ce 6, "ATLAN/VENTN/MARVI"
l = 31
m = 32
h = 34
ce 6, "PACIF/NORTH/PENAV"
l = 37
m = 2
h = 39
ce 6, "PARKP/BOARD"
pay t, cge
st(3 - t).c = st(3 - t).c + cge
ce
13, " to " + RTRIM$(st
(3 - t
).ft
)p
quithue
= ((quithue
+ 1) AND 15) OR 8ce 17, "ARE YOU SURE YOU WANT TO QUIT? (Y/N)"
clk .09
worth1 = cw(1)
worth2 = cw(2)
gov 0
IF lot
(st
(t
).whr
).own
= 0 THEN noo t
IF lot
(st
(t
).whr
).own
= t
THEN ce
12, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 13, "is yours."
p
ce
12, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 13, "is mortgaged."
p
popp t, 50
popp t, 100
popp t, 200
popp t, 400
x = -1
box
ce 5, "I will start a new game."
ce 7, "Do you want the Free Parking jackpot? (Y/N)"
j = -1
fr& = 500
ce 9, "Do you want the land on Go bonus? (Y/N)"
ce 11, "Do you want unlimited buildings in the bank? (Y/N)"
ce 13, "Do you want to suspend mortgage interest? (Y/N)"
ce 15, "Should builings sell back at full price? (Y/N)"
ce 17, "Do you want quiet mode? (Y/N)"
p
ce 10, "to be continued."
crd
box
ce 5, "Shuffling Chance cards."
ce 6, "Please wait."
clk 2
IF cha
(8) = 2 THEN goojfflag
= -1 cha(flip) = 0
box
ce 5, "Shuffling Community Chest cards."
ce 6, "Please wait."
clk 2
IF che
(6) = 2 THEN goojfflag
= -1 che(flip) = 0
lot(h).stat = 4
bht = bht + 1
st(t).c = st(t).c + lot(l).bc * sf!
lot(m).stat = 4
bht = bht + 1
st(t).c = st(t).c + lot(l).bc * sf!
lot(l).stat = 4
bht = bht + 1
st(t).c = st(t).c + lot(l).bc * sf!
quan = chou(1) + chou(2) - 32
tot = lot(l).stat + lot(m).stat + lot(h).stat - quan
lot
(h
).stat
= INT(tot
/ 2)lot
(l
).stat
= INT(tot
/ 2)IF lot
(h
).stat
+ lot
(l
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 lot
(h
).stat
= INT(tot
/ 3)lot
(m
).stat
= INT(tot
/ 3)lot
(l
).stat
= INT(tot
/ 3)IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(m
).stat
= lot
(m
).stat
+ 1 st(t).c = st(t).c + lot(l).bc * quan * sf!
bhu = 0
box
ce 7, "a housing shortage sale taken place."
p
gm(0) = -1
box
gm(1) = -1
mini 1
gm(2) = -1
mini 2
gm(3) = -1
mini 3
gm(4) = -1
mini 4
gm(5) = -1
mini 5
gm(6) = -1
mini 6
gm(7) = -1
mini 7
gm(8) = -1
mini 8
ce 10, "Choose a monopoly to sell hotels from"
ce 11, "or 0 to continue"
box
pim ws, l, m, h
max = 1
IF lot
(m
).stat
= 5 THEN max
= 2 IF lot
(l
).stat
= 5 THEN max
= 3 ce 7, "you can sell up to " + lts(max) + " hotel(s)."
ce 8, "or 0 to continue"
IF st
(t
).c
>= 0 THEN ce
11, "you have $" + ltsb
(st
(t
).c
) ELSE ce
11, "you need to raise $" + lts
(-st
(t
).c
) ce 12, "hotels sell for $" + lts(lot(l).bc * sf!) + " (minus four houses) each."
quan = ner(9, max)
tot = lot(l).stat + lot(m).stat + lot(h).stat - quan
lot
(h
).stat
= INT(tot
/ 2)lot
(l
).stat
= INT(tot
/ 2)IF lot
(h
).stat
+ lot
(l
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 lot
(h
).stat
= INT(tot
/ 3)lot
(m
).stat
= INT(tot
/ 3)lot
(l
).stat
= INT(tot
/ 3)IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(m
).stat
= lot
(m
).stat
+ 1 st(t).c = st(t).c + lot(l).bc * quan * sf!
bht = bht + quan
bhu = bhu - 4 * quan
IF bhu
< 0 THEN short t
, l
, m
, h
gm(0) = -1
box
IF lot
(3).own
= t
AND lot
(3).stat
> 0 AND lot
(3).stat
< 5 THEN gm(1) = -1
mini 1
IF lot
(9).own
= t
AND lot
(9).stat
> 0 AND lot
(9).stat
< 5 THEN gm(2) = -1
mini 2
IF lot
(14).own
= t
AND lot
(14).stat
> 0 AND lot
(14).stat
< 5 THEN gm(3) = -1
mini 3
IF lot
(19).own
= t
AND lot
(19).stat
> 0 AND lot
(19).stat
< 5 THEN gm(4) = -1
mini 4
IF lot
(24).own
= t
AND lot
(24).stat
> 0 AND lot
(24).stat
< 5 THEN gm(5) = -1
mini 5
IF lot
(29).own
= t
AND lot
(29).stat
> 0 AND lot
(29).stat
< 5 THEN gm(6) = -1
mini 6
IF lot
(34).own
= t
AND lot
(34).stat
> 0 AND lot
(34).stat
< 5 THEN gm(7) = -1
mini 7
IF lot
(39).own
= t
AND lot
(39).stat
> 0 AND lot
(39).stat
< 5 THEN gm(8) = -1
mini 8
ce 10, "Choose a monopoly to sell houses from"
ce 11, "or 0 to continue"
box
pim ws, l, m, h
max = lot(l).stat + lot(h).stat
max = lot(l).stat + lot(m).stat + lot(h).stat
ce 7, "you can sell up to " + lts(max) + " house(s)."
ce 8, "or 0 to continue"
IF st
(t
).c
>= 0 THEN ce
11, "you have $" + ltsb
(st
(t
).c
) ELSE ce
11, "you need to raise $" + lts
(-st
(t
).c
) ce 12, "houses sell for $" + lts(lot(l).bc * sf!) + " each."
quan = ner(9, max)
tot = lot(l).stat + lot(m).stat + lot(h).stat - quan
lot
(h
).stat
= INT(tot
/ 2)lot
(l
).stat
= INT(tot
/ 2)IF lot
(h
).stat
+ lot
(l
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 lot
(h
).stat
= INT(tot
/ 3)lot
(m
).stat
= INT(tot
/ 3)lot
(l
).stat
= INT(tot
/ 3)IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(h
).stat
= lot
(h
).stat
+ 1 IF lot
(h
).stat
+ lot
(l
).stat
+ lot
(m
).stat
< tot
THEN lot
(m
).stat
= lot
(m
).stat
+ 1 st(t).c = st(t).c + lot(l).bc * quan * sf!
lil wt
box
LOCATE lot
(sq
).bdn
, lot
(sq
).bac
st(t).jc = st(t).jc + 1
box
ce
5, RTRIM$(st
(t
).ft
) + ", in Jail, turn " + lts
(st
(t
).jc
) + " with $" + ltsb
(st
(t
).c
)IF cr
(t
) + st
(t
).c
>= 50 THEN ce
6, "press M to Make bail (pay $50)" IF st
(t
).chag
OR st
(t
).cheg
THEN ce
7, "press C to use 'get out of jail free' Card" ce 8, "press R to Roll dice"
LOOP UNTIL how$
= "r" OR (how$
= "m" AND cr
(t
) + st
(t
).c
>= 50) OR (how$
= "c" AND (st
(t
).chag
OR st
(t
).cheg
)) box
ce
5, RTRIM$(st
(t
).ft
) + ", roll " + lts
(st
(t
).jc
) + " done, with $" + ltsb
(st
(t
).c
)rlout = di(d1, d2)
ce 10, lts(d1) + " + " + lts(d2) + " = " + lts(rlout)
p
st(t).jc = 0
st(t).whr = 10
box
move rlout, t
act rlout, t
ce 6, "press M to Make bail (pay $50)"
ce 7, "press C to use 'get out of jail free' Card"
pay t, 50
ce 10, "Pick a card."
ce 11, "Press A for chAnce"
ce 12, "press O for cOmmunity che"
ce 13, "Chance card used."
st(t).chag = 0
cha(8) = 1
ce 13, "Community Chest card used."
st(t).cheg = 0
che(6) = 1
p
st(t).jc = 0
st(t).whr = 10
box
move rlout, t
act rlout, t
opt t
pay t, 50
st(t).jc = 0
p
box
st(t).whr = 10
tn t
ce 10, "Pick a card."
ce 11, "Press A for chAnce"
ce 12, "press O for cOmmunity che"
ce 13, "Chance card used."
st(t).chag = 0
cha(8) = 1
ce 13, "Community Chest card used."
st(t).cheg = 0
che(6) = 1
p
box
st(t).jc = 0
st(t).whr = 10
tn t
box
ce
5, RTRIM$(st
(t
).ft
) + " press any key to roll the dice."p
box
rl = di(d1, d2)
ce 7, lts(d1) + " + " + lts(d2) + " = " + lts(rl)
IF d1
= d2
THEN st
(t
).dc
= st
(t
).dc
+ 1 ELSE st
(t
).dc
= 0 clk 1.5
ce 8, "first doubles"
clk 1.5
ce 8, "second doubles"
clk 1.5
ce 8, "Third doubles"
ar t
move rl, t
act rl, t
opt t
mt(0) = -1
box
sml 1
mt(1) = -1
sml 3
mt(3) = -1
sml 5
mt(5) = -1
sml 6
mt(6) = -1
sml 8
mt(8) = -1
sml 9
mt(9) = -1
IF lot
(11).own
= gvr
AND lot
(14).stat
= 0 THEN sml 11
mt(11) = -1
sml 12
mt(12) = -1
IF lot
(13).own
= gvr
AND lot
(14).stat
= 0 THEN sml 13
mt(13) = -1
IF lot
(14).own
= gvr
AND lot
(14).stat
= 0 THEN sml 14
mt(14) = -1
sml 15
mt(15) = -1
IF lot
(16).own
= gvr
AND lot
(19).stat
= 0 THEN sml 16
mt(16) = -1
IF lot
(18).own
= gvr
AND lot
(19).stat
= 0 THEN sml 18
mt(18) = -1
IF lot
(19).own
= gvr
AND lot
(19).stat
= 0 THEN sml 19
mt(19) = -1
IF lot
(21).own
= gvr
AND lot
(24).stat
= 0 THEN sml 21
mt(21) = -1
IF lot
(23).own
= gvr
AND lot
(24).stat
= 0 THEN sml 23
mt(23) = -1
IF lot
(24).own
= gvr
AND lot
(24).stat
= 0 THEN sml 24
mt(24) = -1
sml 25
mt(25) = -1
IF lot
(26).own
= gvr
AND lot
(29).stat
= 0 THEN sml 26
mt(26) = -1
IF lot
(27).own
= gvr
AND lot
(29).stat
= 0 THEN sml 27
mt(27) = -1
sml 28
mt(28) = -1
IF lot
(29).own
= gvr
AND lot
(29).stat
= 0 THEN sml 29
mt(29) = -1
IF lot
(31).own
= gvr
AND lot
(34).stat
= 0 THEN sml 31
mt(31) = -1
IF lot
(32).own
= gvr
AND lot
(34).stat
= 0 THEN sml 32
mt(32) = -1
IF lot
(34).own
= gvr
AND lot
(34).stat
= 0 THEN sml 34
mt(34) = -1
sml 35
mt(35) = -1
IF lot
(37).own
= gvr
AND lot
(39).stat
= 0 THEN sml 37
mt(37) = -1
IF lot
(39).own
= gvr
AND lot
(39).stat
= 0 THEN sml 39
mt(39) = -1
mt(40) = -1
mt(41) = -1
ce
13, RTRIM$(st
(gvr
).ft
) + ", you have $" + ltsb
(st
(gvr
).c
)ce 14, "Choose a deed to trade or 0 to continue"
pick = 0
pick = ner(15, 41)
lot(pick).own = 0
st(gvr).chag = 0
st(gvr).cheg = 0
wit(pick) = gvr
ce 16, "cash to give"
cg(gvr) = nerb(17, st(gvr).c)
box
popp 1, cg(1) - cg(2)
box
popp 2, cg(2) - cg(1)
IF wit
(40) > 0 THEN st
(3 - wit
(40)).chag
= -1 IF wit
(41) > 0 THEN st
(3 - wit
(41)).cheg
= -1 lot(flip).own = 3 - wit(flip)
wit(flip) = 0
lot(flip).own = 3 - wit(flip)
box
ce
5, RTRIM$(st
(3 - wit
(flip
)).ft
) + ", you have $" + ltsb
(st
(3 - wit
(flip
)).c
)ce 7, "is mortgaged."
IF st
(3 - wit
(flip
)).c
>= INT(.5 + lot
(flip
).c
* uf!
) THEN ce 8, "Do you want to unmortgage it now? (Y/N)"
y
= INT(.5 + lot
(flip
).c
* uf!
)n
= INT(.5 + lot
(flip
).c
* (uf!
- .5))ce 9, "Y will cost $" + lts(y)
IF n
> 0 THEN ce
10, "N will cost $" + lts
(n
) yn$ = "n"
pay 3 - wit(flip), y
lot(flip).hk = 0
pay 3 - wit(flip), n
ce 14, "mortgaged property fee."
p
valid = -1
valid = 0
txk = tx$
gp(0) = -1
box
IF lot
(1).own
= t
AND lot
(1).hk
AND st
(t
).c
>= INT(.5 + lot
(1).c
* uf!
) THEN dy 1
gp(1) = -1
IF lot
(3).own
= t
AND lot
(3).hk
AND st
(t
).c
>= INT(.5 + lot
(3).c
* uf!
) THEN dy 3
gp(3) = -1
IF lot
(5).own
= t
AND lot
(5).hk
AND st
(t
).c
>= INT(.5 + lot
(5).c
* uf!
) THEN dy 5
gp(5) = -1
IF lot
(6).own
= t
AND lot
(6).hk
AND st
(t
).c
>= INT(.5 + lot
(6).c
* uf!
) THEN dy 6
gp(6) = -1
IF lot
(8).own
= t
AND lot
(8).hk
AND st
(t
).c
>= INT(.5 + lot
(8).c
* uf!
) THEN dy 8
gp(8) = -1
IF lot
(9).own
= t
AND lot
(9).hk
AND st
(t
).c
>= INT(.5 + lot
(9).c
* uf!
) THEN dy 9
gp(9) = -1
IF lot
(11).own
= t
AND lot
(11).hk
AND st
(t
).c
>= INT(.5 + lot
(11).c
* uf!
) THEN dy 11
gp(11) = -1
IF lot
(12).own
= t
AND lot
(12).hk
AND st
(t
).c
>= INT(.5 + lot
(12).c
* uf!
) THEN dy 12
gp(12) = -1
IF lot
(13).own
= t
AND lot
(13).hk
AND st
(t
).c
>= INT(.5 + lot
(13).c
* uf!
) THEN dy 13
gp(13) = -1
IF lot
(14).own
= t
AND lot
(14).hk
AND st
(t
).c
>= INT(.5 + lot
(14).c
* uf!
) THEN dy 14
gp(14) = -1
IF lot
(15).own
= t
AND lot
(15).hk
AND st
(t
).c
>= INT(.5 + lot
(15).c
* uf!
) THEN dy 15
gp(15) = -1
IF lot
(16).own
= t
AND lot
(16).hk
AND st
(t
).c
>= INT(.5 + lot
(16).c
* uf!
) THEN dy 16
gp(16) = -1
IF lot
(18).own
= t
AND lot
(18).hk
AND st
(t
).c
>= INT(.5 + lot
(18).c
* uf!
) THEN dy 18
gp(18) = -1
IF lot
(19).own
= t
AND lot
(19).hk
AND st
(t
).c
>= INT(.5 + lot
(19).c
* uf!
) THEN dy 19
gp(19) = -1
IF lot
(21).own
= t
AND lot
(21).hk
AND st
(t
).c
>= INT(.5 + lot
(21).c
* uf!
) THEN dy 21
gp(21) = -1
IF lot
(23).own
= t
AND lot
(23).hk
AND st
(t
).c
>= INT(.5 + lot
(23).c
* uf!
) THEN dy 23
gp(23) = -1
IF lot
(24).own
= t
AND lot
(24).hk
AND st
(t
).c
>= INT(.5 + lot
(24).c
* uf!
) THEN dy 24
gp(24) = -1
IF lot
(25).own
= t
AND lot
(25).hk
AND st
(t
).c
>= INT(.5 + lot
(25).c
* uf!
) THEN dy 25
gp(25) = -1
IF lot
(26).own
= t
AND lot
(26).hk
AND st
(t
).c
>= INT(.5 + lot
(26).c
* uf!
) THEN dy 26
gp(26) = -1
IF lot
(27).own
= t
AND lot
(27).hk
AND st
(t
).c
>= INT(.5 + lot
(27).c
* uf!
) THEN dy 27
gp(27) = -1
IF lot
(28).own
= t
AND lot
(28).hk
AND st
(t
).c
>= INT(.5 + lot
(28).c
* uf!
) THEN dy 28
gp(28) = -1
IF lot
(29).own
= t
AND lot
(29).hk
AND st
(t
).c
>= INT(.5 + lot
(29).c
* uf!
) THEN dy 29
gp(29) = -1
IF lot
(31).own
= t
AND lot
(31).hk
AND st
(t
).c
>= INT(.5 + lot
(31).c
* uf!
) THEN dy 31
gp(31) = -1
IF lot
(32).own
= t
AND lot
(32).hk
AND st
(t
).c
>= INT(.5 + lot
(32).c
* uf!
) THEN dy 32
gp(32) = -1
IF lot
(34).own
= t
AND lot
(34).hk
AND st
(t
).c
>= INT(.5 + lot
(34).c
* uf!
) THEN dy 34
gp(34) = -1
IF lot
(35).own
= t
AND lot
(35).hk
AND st
(t
).c
>= INT(.5 + lot
(35).c
* uf!
) THEN dy 35
gp(35) = -1
IF lot
(37).own
= t
AND lot
(37).hk
AND st
(t
).c
>= INT(.5 + lot
(37).c
* uf!
) THEN dy 37
gp(37) = -1
IF lot
(39).own
= t
AND lot
(39).hk
AND st
(t
).c
>= INT(.5 + lot
(39).c
* uf!
) THEN dy 39
gp(39) = -1
ce 14, "Choose a deed to unmortgage or 0 to continue"
ce 17, "you have $" + ltsb(st(t).c)
pick = ner(15, 39)
lot(pick).hk = 0
box
pay t
, INT(.5 + lot
(pick
).c
* uf!
)p
chk 1, 1, 3
chk 6, 8, 9
chk 11, 13, 14
chk 16, 18, 19
chk 21, 23, 24
chk 26, 27, 29
chk 31, 32, 34
chk 37, 37, 39
IF lot
(12).own
= lot
(28).own
AND lot
(12).own
> 0 THEN lot(12).stat = 2
lot(28).stat = 2
lot
(12).stat
= SGN(lot
(12).own
)lot
(28).stat
= SGN(lot
(28).own
)rro = rro * 10 + lot(rtt).own
lot(rtt).stat = 0
lot(5).stat = 4
lot(15).stat = 4
lot(25).stat = 4
lot(35).stat = 4
CASE 111, 222, 1222, 2111 lot(15).stat = 3
lot(25).stat = 3
lot(35).stat = 3
CASE 1011, 1211, 2022, 2122 lot(5).stat = 3
lot(25).stat = 3
lot(35).stat = 3
CASE 1101, 1121, 2202, 2212 lot(5).stat = 3
lot(15).stat = 3
lot(35).stat = 3
CASE 1110, 1112, 2220, 2221 lot(5).stat = 3
lot(15).stat = 3
lot(25).stat = 3
IF lot
(5).own
= lot
(15).own
AND lot
(5).own
> 0 THEN lot(5).stat = 2
lot(15).stat = 2
IF lot
(5).own
= lot
(25).own
AND lot
(5).own
> 0 THEN lot(5).stat = 2
lot(25).stat = 2
IF lot
(5).own
= lot
(35).own
AND lot
(5).own
> 0 THEN lot(5).stat = 2
lot(35).stat = 2
IF lot
(15).own
= lot
(25).own
AND lot
(15).own
> 0 THEN lot(15).stat = 2
lot(25).stat = 2
IF lot
(15).own
= lot
(35).own
AND lot
(15).own
> 0 THEN lot(15).stat = 2
lot(35).stat = 2
IF lot
(25).own
= lot
(35).own
AND lot
(25).own
> 0 THEN lot(25).stat = 2
lot(35).stat = 2
IF lot
(rtt
).stat
= 0 THEN lot
(rtt
).stat
= SGN(lot
(rtt
).own
) swbs
IF lot
(st
(t
).whr
).own
= 0 THEN noo t
IF lot
(st
(t
).whr
).own
= t
THEN ce
12, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 13, "is yours."
p
ce
12, RTRIM$(lot
(st
(t
).whr
).ttl
)ce 13, "is mortgaged."
p
crl = di(d1, d2)
ce 11, lts(d1) + " + " + lts(d2) + " = " + lts(crl) + ", $" + lts(10 * crl) + " due."
p
popp t, 10 * crl
box
tiny 1
tiny 3
tiny 5
tiny 6
tiny 8
tiny 9
tiny 11
tiny 12
tiny 13
tiny 14
tiny 15
tiny 16
tiny 18
tiny 19
tiny 21
tiny 23
tiny 24
tiny 25
tiny 26
tiny 27
tiny 28
tiny 29
tiny 31
tiny 32
tiny 34
tiny 35
tiny 37
tiny 39
ce 13, "choose a deed to view or 0 to continue"
wt = ner(14, 39)
box
ce 6, "cost $" + lts(lot(wt).c)
ce 7, "mortgage value $" + lts(lot(wt).c / 2)
ce 8, "rent $" + lts(lot(wt).r)
ce 9, "rent with one house $" + lts(lot(wt).r1)
ce 10, "rent with two houses $" + lts(lot(wt).r2)
ce 11, "rent with three houses $" + lts(lot(wt).r3)
ce 12, "rent with four houses $" + lts(lot(wt).r4)
ce 13, "rent with hotel $" + lts(lot(wt).rhot)
ce 14, "houses cost $" + lts(lot(wt).bc) + " each"
ce 15, "hotel costs $" + lts(lot(wt).bc) + " plus 4 houses"
ce 16, "unowned"
ce
16, "owned by " + RTRIM$(st
(lot
(wt
).own
).ft
)ce
17, "mortgaged, $" + lts
(INT(.5 + lot
(wt
).c
* uf!
)) + " to unmortgage."ce 17, "with no buildings"
ce 17, "with one house"
ce 17, "with two houses"
ce 17, "with three houses"
ce 17, "with four houses"
ce 17, "with hotel"
p
box
ce 6, "cost $150"
ce 7, "mortgage value $75"
ce 8, "rent with one Utility, four times dice"
ce 9, "rent with two Utilities, ten times dice"
ce 16, "unowned"
ce
16, "owned by " + RTRIM$(st
(lot
(wt
).own
).ft
)IF lot
(wt
).hk
THEN ce
17, "mortgaged, $" + lts
(INT(.5 + lot
(wt
).c
* uf!
)) + " to unmortgage." ce 18, "one Utility"
ce 18, "two utlities"
p
box
ce 6, "cost $200"
ce 7, "mortgage value $100"
ce 8, "rent with one Railroad $25"
ce 9, "rent with two Railroads $50"
ce 10, "rent with three Railroads $100"
ce 11, "rent with four Railroads $200"
ce 16, "unowned"
ce
16, "owned by " + RTRIM$(st
(lot
(wt
).own
).ft
)IF lot
(wt
).hk
THEN ce
17, "mortgaged, $" + lts
(INT(.5 + lot
(wt
).c
* uf!
)) + " to unmortgage." ce 18, "one Railroad"
ce 18, "two Railroads"
ce 18, "three Railroads"
ce 18, "four Railroads"
p