#line 1 "/usr/include/stdio.h"
struct _iobuf
*freopen();
typedef struct sqr_st SQUARE
;
typedef struct mon_st MON
;
typedef struct own_st OWN
;
typedef struct plr_st PLAY
;
typedef struct prp_st PROP
;
typedef struct rr_st RR_S
;
typedef struct rr_st UTIL_S
;
int cc(), chance(), lux_tax(), goto_jail(), inc_tax();
typedef struct dk_st DECK
;
extern char trading
, spec
, fixing
, told_em
;
extern char *yn
[], *comlist
[], *name_list
[], *lucky_mes
[];
extern int num_play
, player
, num_doub
, num_luck
, (*func
[])();
extern PLAY
*play
, *cur_p
;
typedef struct trd_st TRADE
;
static char *list
[(22 +4 +2 ) +2];
static int used
[(22 +4 +2 ) ];
for (i
= 0; i
< 2; i
++) {
tradee
= getinp((&xstr
[4919]),
if (getyn((&xstr
[4992])) == 0)
if (getyn((&xstr
[5016])) == 0)
get_list(struct_no
, play_no
)
int struct_no
, play_no
; {
int numin
, prop
, num_prp
;
for (numin
= 0; numin
< (22 +4 +2 ) ; numin
++)
sn
= struct_no
, pn
= play_no
;
printf((&xstr
[5034]), pp
->name
, pn
+1);
numin
= set_list(pp
->own_list
);
for (num_prp
= numin
; num_prp
; ) {
prop
= getinp((&xstr
[5051]),
for (op
= pp
->own_list
; prop
--; op
= op
->next
)
add_list(pn
, &(tp
->prop_list
), (op
->sqr
- board
));
printf((&xstr
[5121]), pp
->money
);
tp
->cash
= get_int((&xstr
[5137]));
printf((&xstr
[5164]),pp
->num_gojf
);
tp
->gojf
= get_int((&xstr
[5205]));
if (tp
->gojf
> pp
->num_gojf
) {
register OWN
*the_list
; {
for (op
= the_list
; op
; op
= op
->next
)
list
[i
++] = op
->sqr
->name
;
list
[i
++] = (&xstr
[1245]);
for (i
= 0; i
< 2; i
++) {
printf((&xstr
[5271]), play
[tp
->trader
].name
,
printf((&xstr
[5294]), tp
->cash
), some
++;
printf((&xstr
[5300]), tp
->gojf
),
for (op
= tp
->prop_list
; op
; op
= op
->next
)
(--((&_iob
[1]))->_cnt
>=0? ((int)(*((&_iob
[1]))->_ptr
++=(unsigned)('\t'))):_flsbuf((unsigned)('\t'),(&_iob
[1]))), printsq( (op
->sqr
- board
), (1));
move_em(&trades
[0], &trades
[1]);
move_em(&trades
[1], &trades
[0]);
register PLAY
*pl_fr
, *pl_to
;
pl_fr
= &play
[from
->trader
];
pl_to
= &play
[to
->trader
];
pl_fr
->money
-= from
->cash
;
pl_to
->money
+= from
->cash
;
pl_fr
->num_gojf
-= from
->gojf
;
pl_to
->num_gojf
+= from
->gojf
;
for (op
= from
->prop_list
; op
; op
= op
->next
) {
add_list(to
->trader
, &(pl_to
->own_list
), (op
->sqr
- board
));
op
->sqr
->owner
= to
->trader
;
del_list(from
->trader
, &(pl_fr
->own_list
), (op
->sqr
- board
));
switch (board
[cur_p
->loc
].type
) {
new_own
= board
[cur_p
->loc
].owner
;
printf((&xstr
[5380]), name_list
[new_own
]);
else if (num_play
== 1) {
name_list
[num_play
] = (&xstr
[5404]);
new_own
= getinp((&xstr
[5409]),
} while (new_own
== player
);
name_list
[num_play
] = (&xstr
[1245]);
if (getyn((&xstr
[5472]), yn
) != 0)
if (new_own
< num_play
) {
trades
[0].trader
= new_own
;
trades
[0].cash
= trades
[0].gojf
= 0;
trades
[1].trader
= player
;
trades
[1].cash
= cur_p
->money
> 0 ? cur_p
->money
: 0;
trades
[1].gojf
= cur_p
->num_gojf
;
trades
[1].prop_list
= cur_p
->own_list
;
for (op
= cur_p
->own_list
; op
; op
= op
->next
) {
isnot_monop(sqp
->desc
->mon_desc
);
for (i
= player
; i
< num_play
; i
++) {
name_list
[i
] = name_list
[i
+1];
cpy_st(&play
[i
], &play
[i
+1], sizeof (PLAY
));
name_list
[num_play
--] = 0;
for (i
= 0; i
< 40 ; i
++)
if (board
[i
].owner
> player
)
player
= --player
< 0 ? num_play
- 1 : player
;
printf((&xstr
[5577]), play
[0].name
);
play
[0].money
+prop_worth(&play
[0]));