Searched refs:piece (Results 1 - 25 of 48) sorted by relevance

12

/macosx-10.10.1/pcre-7/pcre/
H A Dpcre_stringpiece.cc41 std::ostream& operator<<(std::ostream& o, const pcrecpp::StringPiece& piece) { argument
42 return (o << piece.as_string());
/macosx-10.10.1/Chess-310.6/Sources/
H A DMBCMoveGenerator.mm72 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to
77 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to
83 - (void) validDrop:(MBCPiece)piece at:(MBCSquare)at
115 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to
127 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to
130 [self validMove:piece from:from to:to];
133 - (void) validDrop:(MBCPiece)piece at:(MBCSquare)at
137 newPos.fBoard[at] = piece;
196 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to
201 sPieces[piece],
[all...]
H A DMBCMoveGenerator.h58 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to;
59 - (void) validMove:(MBCPiece)piece from:(MBCSquare)from to:(MBCSquare)to
61 - (void) validDrop:(MBCPiece)piece at:(MBCSquare)at;
94 // An MBCPieceMoves collects all legal moves for one piece type
114 void AddMove(bool unambig, MBCPiece piece, MBCSquare from, MBCSquare to);
115 void AddDrop(MBCPiece piece, MBCSquare at);
141 bool TryMove(MBCPiece piece, MBCSquare from, MBCSquare to);
142 bool TryMove(MBCPiece piece, MBCSquare from, int dCol, int dRow);
143 void TryMoves(MBCPiece piece, MBCSquare from, int dCol, int dRow);
144 void TryMoves(MBCPiece piece, MBCSquar
[all...]
H A DMBCBoard.h93 inline MBCPieceCode Piece(MBCPiece piece){ return (MBCPieceCode)(piece&7); } argument
94 inline MBCPieceCode Color(MBCPiece piece){ return (MBCPieceCode)(piece&8); } argument
95 inline MBCPieceCode What(MBCPiece piece) { return (MBCPieceCode)(piece&15);} argument
96 inline MBCPiece Matching(MBCPiece piece, MBCPieceCode code) argument
97 { return (piece & 8) | code; }
98 inline MBCPiece Opposite(MBCPiece piece) { return piece argument
99 Promoted(MBCPiece piece) argument
101 PieceMoved(MBCPiece piece) argument
[all...]
H A DMBCLanguageModel.mm145 - (SRLanguageObject) movesForPiece:(MBCPiece)piece
149 SRAddText(model, sPieceName[piece], strlen(sPieceName[piece]), 0);
153 sPieceName[piece]];
157 MBCPieceMoves * moves = fMoves->fMoves+piece;
159 fprintf(stderr, "<%smoves> = \n", sPieceName[piece]);
169 pawn:piece==PAWN]];
261 for (MBCPiece piece = QUEEN; piece < PAWN; ++piece)
[all...]
H A DMBCBoard.mm141 const char * piece = " KQBNRP kqbnrp ";
146 fPiece = static_cast<MBCPiece>(strchr(piece, move[0])-piece);
153 fPromotion = static_cast<MBCPiece>(strchr(piece, move[4])-piece);
190 - (NSString *) pieceLetter:(MBCPiece)piece forDrop:(BOOL)drop
192 piece = Piece(piece);
193 if (!drop && piece==PAWN)
196 return NSLocalizedString(sPieceLetters[piece],
[all...]
H A DMBCBoardViewDraw.mm195 /* Get board piece color */
471 /* Draws a single piece */
472 - (void) simplyDrawPiece:(MBCPiece)piece at:(MBCPosition)pos scale:(float)scale
475 int color = Color(piece) != 0;
476 piece = Piece(piece);
479 if (piece == KNIGHT) /* white knight */
487 glCallList(piece);
490 fLastPieceDrawn = piece;
493 - (void) drawPiece:(MBCPiece)piece a
[all...]
H A DMBCBoardView.mm415 - (void) selectPiece:(MBCPiece)piece at:(MBCSquare)square
418 fSelectedPiece = piece;
427 - (void) selectPiece:(MBCPiece)piece at:(MBCSquare)square to:(MBCSquare)dest
431 [self selectPiece:piece at:square];
460 MBCPieceCode piece = gInHandOrder[(int)(pza / kInHandPieceSize)];
461 return kInHandSquare+(pz < 0 ? Black(piece) : White(piece));
496 MBCPieceCode piece = gInHandOrder[(int)(pza / kInHandPieceSize)];
497 return kInHandSquare+(pz < 0 ? Black(piece) : White(piece));
[all...]
H A DMBCInteractivePlayer.mm517 MBCPiece piece;
520 piece = square-kInHandSquare;
521 if (fVariant!=kVarCrazyhouse || ![[fController board] curInHand:piece])
526 piece = [[fController board] oldContents:square];
528 if (!piece)
531 if (Color(piece) == (fLastSide==kBlackSide ? kWhitePiece : kBlackPiece)) {
533 [[fController gameView] selectPiece:piece at:square];
H A DMBCBoardView.h172 - (void) selectPiece:(MBCPiece)piece at:(MBCSquare)square;
173 - (void) selectPiece:(MBCPiece)piece at:(MBCSquare)square to:(MBCSquare)dest;
H A DMBCEngine.mm530 const char * piece = " KQBNRP kqbnrp ";
543 piece[move->fPromotion]]];
554 piece[move->fPiece],
/macosx-10.10.1/Chess-310.6/sjeng/
H A Dsee.c29 int piece; member in struct:__anon397
55 see_attackers[WHITE][numw].piece = b_sq;
62 see_attackers[BLACK][numb].piece = b_sq;
74 see_attackers[WHITE][numw].piece = b_sq;
81 see_attackers[BLACK][numb].piece = b_sq;
101 see_attackers[WHITE][numw].piece = b_sq;
108 see_attackers[BLACK][numb].piece = b_sq;
116 see_attackers[WHITE][numw].piece = b_sq;
123 see_attackers[BLACK][numb].piece = b_sq;
133 see_attackers[WHITE][numw].piece
[all...]
H A Dcrazy.c210 int SwitchColor(int piece) argument
214 assert(piece > frame && piece < npiece);
216 return(t[piece]);
219 int SwitchPromoted(int piece) argument
223 assert(piece > frame && piece < npiece);
225 return(t[piece]);
H A Dprotos.h100 int SwitchColor(int piece);
101 int SwitchPromoted(int piece);
131 void PutPiece(int color, char piece, char file, int rank);
/macosx-10.10.1/curl-83.1.2/curl/lib/
H A Dhttp_chunks.c117 size_t piece; local
190 more or less than 'datasize'. Get the smallest piece.
192 piece = curlx_sotouz((ch->datasize >= length)?length:ch->datasize);
203 piece);
214 (ssize_t)piece);
221 (ssize_t)piece);
237 *wrote += piece;
239 ch->datasize -= piece; /* decrease amount left to expect */
240 datap += piece; /* move read pointer forward */
241 length -= piece; /* decreas
[all...]
/macosx-10.10.1/ruby-106/ruby/benchmark/
H A Dbm_so_meteor_contest.rb15 # class to represent all information about a particular rotation of a particular piece
17 # an array (by location) containing a bit mask for how the piece maps at the given location.
36 # is true the piece cannot be placed
85 # given a location, produces a list of relative locations covered by the piece at this rotation
94 # returns a set of offsets relative to the top-left most piece of the rotation (by even or odd rows)
103 # The top-left of the piece is at position 8, the
106 # by subtracting 8 from everything. Now imagine the piece shifted up and to the right so it's on an even row:
115 # offsets for this particular piece are (in even, odd order) [0,1,5,11,16],[0,1,6,11,17] which is what
145 # without falling off any edge of the board. the values returned a location to place the first piece
156 # given a set of directions places the piece (a
[all...]
H A Dbm_app_pentomino.rb15 def piece(n, a, nb) method
28 piece(n+1,a[0..n],nbc)
47 piece(0,[],[0])
145 def piece(n,a,nb) method
158 piece(n+1,a[0..n],nbc)
177 piece(0,[],[0])
/macosx-10.10.1/Heimdal-398.1.2/lib/krb5/
H A Dreplay.c293 const krb5_data *piece,
299 char *tmp = malloc(4 * piece->length + 1);
307 strvisx(tmp, piece->data, piece->length, VIS_WHITE | VIS_OCTAL);
292 krb5_get_server_rcache(krb5_context context, const krb5_data *piece, krb5_rcache *id) argument
/macosx-10.10.1/CPANInternal-159.1/DateTime-Format-Builder-0.81/lib/DateTime/Format/Builder/Parser/
H A DQuick.pm102 on the object, or a reference to a piece of code.
/macosx-10.10.1/tcl-105/tcl_ext/tktable/tktable/
H A DREADME.txt146 * If you find a bug, a short piece of Tcl that exercises it would be very
148 crashed in that short piece of Tcl. Use the SourceForge site to check
/macosx-10.10.1/ICU-531.30/icuSources/layout/
H A DIndicReordering.cpp245 LEUnicode piece = (*splitMatra)[j]; local
247 fOutChars[i+inv_count] = piece;
248 matraClass = classTable->getCharClass(piece);
250 insertCharacter(piece,i+1+inv_count,saveIndex,saveAuxData);
336 LEUnicode piece = (*splitMatra)[i]; local
337 IndicClassTable::CharClass pieceClass = classTable->getCharClass(piece);
339 saveMatra(piece, matraIndex, pieceClass);
/macosx-10.10.1/CPANInternal-159.1/HTTP-Proxy-0.25/lib/HTTP/Proxy/
H A DBodyFilter.pm167 the buffer after the last piece of data is received from the origin
168 server will be sent back to your filter in one big piece.
192 piece of data for the current HTTP message body.
/macosx-10.10.1/CPANInternal-159.1/HTTP-Proxy-0.300/lib/HTTP/Proxy/
H A DBodyFilter.pm167 the buffer after the last piece of data is received from the origin
168 server will be sent back to your filter in one big piece.
192 piece of data for the current HTTP message body.
/macosx-10.10.1/CPANInternal-159.1/DateTime-Format-Builder-0.80/lib/DateTime/Format/Builder/Parser/
H A DQuick.pm52 on the object, or a reference to a piece of code.
/macosx-10.10.1/CPANInternal-159.1/HTTP-Proxy-0.25/lib/HTTP/Proxy/BodyFilter/
H A Dcomplete.pm61 piece of data.

Completed in 368 milliseconds

12