Home | History | Annotate | Download | only in mille

Lines Matching refs:pp

54 	PLAY		*pp, *op;
65 pp = &Player[COMP];
76 card = pp->hand[i];
80 if ((playit[i] = canplay(pp, op, card)) != 0)
84 if ((playit[i] = canplay(pp, op, card))
91 if ((playit[i] = canplay(pp, op, card))
92 && pp->mileage + Value[card] == End)
96 playit[i] = canplay(pp, op, card);
103 if (pp->battle == opposite(card) ||
104 (pp->speed == C_LIMIT && card == C_RIGHT_WAY)) {
118 if (pp->hand[0] == C_INIT && Topcard > Deck) {
131 if (is_safety(pp->hand[i])) {
144 oppos = opposite(pp->hand[i]);
146 !(pp->hand[i] == C_RIGHT_WAY &&
150 && (op->can_go || !pp->can_go || Topcard < Deck)) {
152 if ((!pp->mileage) != (!op->mileage))
167 if (!pp->can_go && !is_repair(pp->battle))
168 Numneed[opposite(pp->battle)]++;
172 || pp->safety[S_RIGHT_WAY] != S_UNKNOWN);
174 count200 = pp->nummiles[C_200];
182 card = pp->hand[i];
191 diff = End - pp->mileage;
206 if (pp->speed == C_LIMIT)
212 *value = (pp->mileage ? 10 : 20);
224 if (pp->speed == C_LIMIT)
229 if (pp->mileage + Value[card] > End)
231 else if (pp->mileage + Value[card] == End) {
237 if (pp->safety[S_RIGHT_WAY] != S_UNKNOWN)
238 *value = (pp->safety[S_RIGHT_WAY] ==
240 else if (pp->speed == C_LIMIT &&
241 End - pp->mileage <= 50)
243 else if (pp->speed == C_LIMIT
257 if (pp->safety[safe] != S_UNKNOWN)
258 *value = (pp->safety[safe] ==
260 else if (pp->battle != oppos
278 if (pp->safety[S_RIGHT_WAY] != S_UNKNOWN)
279 *value = (pp->safety[S_RIGHT_WAY] ==
281 else if (pp->can_go
301 *value = (pp->safety[S_RIGHT_WAY] !=
311 *value = (pp->safety[safe]!=S_UNKNOWN ? 3 : 4);
318 if (!pp->mileage || foundend ||
326 pp->safety[safe] != S_UNKNOWN)
336 *value = (pp->safety[S_RIGHT_WAY] !=
340 if (!pp->mileage || foundend ||
349 if (cango && pp->safety[S_RIGHT_WAY] !=
378 C_name[pp->hand[i]]);
382 if (!pp->can_go && !is_repair(pp->battle))
383 Numneed[opposite(pp->battle)]++;
391 if (is_safety(pp->hand[nummin])) { /* NEVER discard a safety */
399 mvprintw(MOVE_Y + 2, MOVE_X, "%16s", C_name[pp->hand[Card_no]]);
406 onecard(const PLAY *pp)
410 bat = pp->battle;
411 spd = pp->speed;
413 if (pp->can_go || ((is_repair(bat) || bat == C_STOP || spd == C_LIMIT) &&
416 switch (End - pp->mileage) {
418 if (pp->nummiles[C_200] == 2)
425 card = (End - pp->mileage == 75 ? C_75 : C_100);
432 card = (End - pp->mileage == 25 ? C_25 : C_50);
439 canplay(const PLAY *pp, const PLAY *op, CARD card)
443 if (pp->nummiles[C_200] == 2)
447 if (pp->speed == C_LIMIT)
451 if (pp->mileage + Value[card] > End)
455 if (pp->can_go)
470 if (pp->battle == opposite(card))
474 if (!pp->can_go &&
475 (is_repair(pp->battle) || pp->battle == C_STOP))
479 if (pp->speed == C_LIMIT)