Transpiled version (66L) is out of date.
sS chess_parseFENSymbol(char c) { if (isUpper(c)) ret "white " + chess_parseFENSymbol2(lower(c)); else if (isLower(c)) ret "black " + chess_parseFENSymbol2(c); else ret "empty"; } sS chess_parseFENSymbol2(char c) { if (c == 'k') ret "king"; if (c == 'q') ret "queen"; if (c == 'r') ret "rook"; if (c == 'n') ret "knight"; if (c == 'b') ret "bishop"; if (c == 'p') ret "pawn"; ret str(c); // unknown }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024762 |
| Snippet name: | chess_parseFENSymbol |
| Eternal ID of this version: | #1024762/4 |
| Text MD5: | c2da8aa40e2a49a278c038f6d03f3738 |
| Author: | stefan |
| Category: | javax / chess |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-26 14:35:53 |
| Source code size: | 450 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 429 / 578 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |