/dports/games/xboard-devel/xboard-f49e7e1/winboard/ |
H A D | jaws.c | 644 ChessSquare currentpiece, oldpiece; in SayKnightMoves() local 647 oldpiece = boards[currentMove][fromY][fromX]; in SayKnightMoves() 648 if(oldpiece == WhiteKnight || oldpiece == BlackKnight) in SayKnightMoves() 655 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 670 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 685 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 700 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 715 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 730 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 745 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() [all …]
|
/dports/games/xboard/xboard-4.9.1/winboard/ |
H A D | jaws.c | 645 ChessSquare currentpiece, oldpiece; in SayKnightMoves() local 648 oldpiece = boards[currentMove][fromY][fromX]; in SayKnightMoves() 649 if(oldpiece == WhiteKnight || oldpiece == BlackKnight) in SayKnightMoves() 656 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 671 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 686 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 701 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 716 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 731 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() 746 if(((oldpiece == WhiteKnight) && (currentpiece > WhiteKing)) in SayKnightMoves() [all …]
|
/dports/games/xscrabble/xscrabble-2.12/src/ |
H A D | moves.c | 42 int oldpiece = 0; /* set old piece check to false */ in validate() local 111 oldpiece = 1; in validate() 113 oldpiece = 1; in validate() 115 oldpiece = 1; in validate() 116 if (oldpiece) in validate() 196 oldpiece = 1; in validate() 198 oldpiece = 1; in validate() 200 oldpiece = 1; in validate() 201 if (oldpiece) in validate()
|
/dports/games/KnightCap/Export/ |
H A D | board.c | 167 PieceStruct *piece, *oldpiece; in do_move_part1() local 208 oldpiece = get_pboard(b, move->to); in do_move_part1() 219 if (oldpiece) { in do_move_part1() 220 remove_piece(b, oldpiece); in do_move_part1() 230 oldpiece = get_pboard(b, move->to + SOUTH); in do_move_part1() 232 oldpiece = get_pboard(b, move->to + NORTH); in do_move_part1() 234 remove_piece(b, oldpiece); in do_move_part1() 326 if (oldpiece) { in do_move_part1() 346 if (oldpiece || abs(p1) == PAWN) in do_move_part1()
|
/dports/irc/infobot/infobot-0.45.3/extras/ |
H A D | Extras.pl | 39 my ($X, $oldpiece, $newpiece, $flags) = ($1, $2, $3, $4); 42 my $op = quotemeta($oldpiece); 75 &msg($who, "That doesn't contain '$oldpiece'"); 77 &say("That doesn't contain '$oldpiece', $who");
|
/dports/math/giacxcas/fltk-1.3.0/test/ |
H A D | checkers.cxx | 434 piece oldpiece = b[i]; b[i] = EMPTY; in movepiece() local 435 if (!(oldpiece&KING) && n->who ? (j>=36) : (j<=8)) { in movepiece() 437 b[j] = oldpiece|KING; in movepiece() 439 else b[j] = oldpiece; in movepiece() 442 b[i] = oldpiece; b[j] = EMPTY; in movepiece() 457 piece oldpiece = b[i]; b[i] = EMPTY; in movepiece() local 458 if (!(oldpiece&KING) && n->who ? (j>=36) : (j<=8)) { in movepiece() 460 b[j] = oldpiece|KING; in movepiece() 462 else b[j] = oldpiece; in movepiece() 474 b[i] = oldpiece; b[j] = EMPTY; in movepiece()
|
/dports/x11-toolkits/fltk/fltk-1.3.8/test/ |
H A D | checkers.cxx | 425 piece oldpiece = b[i]; b[i] = EMPTY; in movepiece() local 426 if (!(oldpiece&KING) && n->who ? (j>=36) : (j<=8)) { in movepiece() 428 b[j] = oldpiece|KING; in movepiece() 430 else b[j] = oldpiece; in movepiece() 433 b[i] = oldpiece; b[j] = EMPTY; in movepiece() 448 piece oldpiece = b[i]; b[i] = EMPTY; in movepiece() local 449 if (!(oldpiece&KING) && n->who ? (j>=36) : (j<=8)) { in movepiece() 451 b[j] = oldpiece|KING; in movepiece() 453 else b[j] = oldpiece; in movepiece() 465 b[i] = oldpiece; b[j] = EMPTY; in movepiece()
|
/dports/x11-toolkits/ntk/ntk/test/ |
H A D | checkers.cxx | 434 piece oldpiece = b[i]; b[i] = EMPTY; in movepiece() local 435 if (!(oldpiece&KING) && n->who ? (j>=36) : (j<=8)) { in movepiece() 437 b[j] = oldpiece|KING; in movepiece() 439 else b[j] = oldpiece; in movepiece() 442 b[i] = oldpiece; b[j] = EMPTY; in movepiece() 457 piece oldpiece = b[i]; b[i] = EMPTY; in movepiece() local 458 if (!(oldpiece&KING) && n->who ? (j>=36) : (j<=8)) { in movepiece() 460 b[j] = oldpiece|KING; in movepiece() 462 else b[j] = oldpiece; in movepiece() 474 b[i] = oldpiece; b[j] = EMPTY; in movepiece()
|
/dports/security/hydra/thc-hydra-9.2/ |
H A D | hydra-mod.c | 1068 char *hydra_strrep(char *string, char *oldpiece, char *newpiece) { in hydra_strrep() argument 1074 …oldpiece == NULL || newpiece == NULL || strlen(string) >= sizeof(oldstring) - 1 || (strlen(string)… in hydra_strrep() 1087 c = (char *)strstr(oldstring, oldpiece); in hydra_strrep() 1089 old_len = strlen(oldpiece); in hydra_strrep() 1106 if ((c = (char *)strstr(oldstring + str_index, oldpiece)) != NULL) in hydra_strrep()
|
H A D | hydra-mod.h | 49 extern char *hydra_strrep(char *string, char *oldpiece, char *newpiece);
|
/dports/mail/simscan/simscan-1.4.0/ |
H A D | simscan.c | 103 char *replace(char *string, char *oldpiece, char *newpiece); 2238 char *replace(char *string, char *oldpiece, char *newpiece) in replace() argument 2245 if ((c = (char *) strstr(string, oldpiece)) == NULL) in replace() 2249 old_len = strlen(oldpiece); in replace() 2269 if((c = (char *) strstr(string+str_index, oldpiece)) != NULL) in replace()
|
H A D | simscan.c.good.onechar | 103 char *replace(char *string, char *oldpiece, char *newpiece); 2204 /* Given a string, replaces all instances of "oldpiece" with "newpiece". 2207 * expansion of string when newpiece contains oldpiece. --Byron 2210 char *replace(char *string, char *oldpiece, char *newpiece) 2217 if ((c = (char *) strstr(string, oldpiece)) == NULL) 2221 old_len = strlen(oldpiece); 2241 if((c = (char *) strstr(string+str_index, oldpiece)) != NULL)
|
H A D | simscan.c.bakup | 101 char *replace(char *string, char *oldpiece, char *newpiece); 2177 /* Given a string, replaces all instances of "oldpiece" with "newpiece". 2180 * expansion of string when newpiece contains oldpiece. --Byron 2183 char *replace(char *string, char *oldpiece, char *newpiece) 2190 if ((c = (char *) strstr(string, oldpiece)) == NULL) 2194 old_len = strlen(oldpiece); 2214 if((c = (char *) strstr(string+str_index, oldpiece)) != NULL)
|
H A D | simscan.c.good | 103 char *replace(char *string, char *oldpiece, char *newpiece); 2167 /* Given a string, replaces all instances of "oldpiece" with "newpiece". 2170 * expansion of string when newpiece contains oldpiece. --Byron 2173 char *replace(char *string, char *oldpiece, char *newpiece) 2180 if ((c = (char *) strstr(string, oldpiece)) == NULL) 2184 old_len = strlen(oldpiece); 2204 if((c = (char *) strstr(string+str_index, oldpiece)) != NULL)
|
/dports/print/lyx/lyx-2.3.4.2/lib/tex/ |
H A D | lyxskak.sty | 920 \edef\oldpiece{\Get{\MoveToFile\MoveToRank}}% 927 \def\UndoMove#1{% square -> unit, relies on \oldpiece and \MoveToFile/Rank 928 \Set{#1}{\Get{\MoveToFile\MoveToRank}}\Set{\MoveToFile\MoveToRank}{\oldpiece}% 949 % % \edef\oldpiece{\Get{\MoveToFile\MoveToRank}}%
|