1 | sS chess_parseFENLine(S s) { |
2 | new StringBuilder buf; |
3 | for i over s: { |
4 | char c = s.charAt(i); |
5 | if (isDigit(c)) |
6 | buf.append(spaces(charDiff(c, '0'))); |
7 | else |
8 | buf.append(c); |
9 | } |
10 | ret str(buf); |
11 | } |
Began life as a copy of #1024758
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: | #1024759 |
Snippet name: | chess_parseFENLine |
Eternal ID of this version: | #1024759/1 |
Text MD5: | 3a2ac6c2adb8578c624a7d9d84974f37 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-24 17:28:19 |
Source code size: | 223 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 205 / 232 |
Referenced in: | [show references] |