[{"data":1,"prerenderedAt":935},["ShallowReactive",2],{"navigation_docs":3,"-encodings-square":140,"-encodings-square-surround":930},[4,52],{"title":5,"path":6,"stem":7,"children":8,"icon":51},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Encoding and Decoding","\u002Fguide\u002Fencoding","1.guide\u002F02.encoding",{"title":16,"path":17,"stem":18},"Checksums","\u002Fguide\u002Fchecksums","1.guide\u002F03.checksums",{"title":20,"path":21,"stem":22},"Identify","\u002Fguide\u002Fidentify","1.guide\u002F04.identify",{"title":24,"path":25,"stem":26},"CLI","\u002Fguide\u002Fcli","1.guide\u002F05.cli",{"title":28,"path":29,"stem":30},"Agents","\u002Fguide\u002Fagents","1.guide\u002F06.agents",{"title":32,"path":33,"stem":34},"Code pages","\u002Fguide\u002Fcode-pages","1.guide\u002F07.code-pages",{"title":36,"path":37,"stem":38},"RLP","\u002Fguide\u002Frlp","1.guide\u002F08.rlp",{"title":40,"path":41,"stem":42},"OpenPGP armor","\u002Fguide\u002Farmor","1.guide\u002F09.armor",{"title":44,"path":45,"stem":46},"Custom Encodings","\u002Fguide\u002Fcustom","1.guide\u002F10.custom",{"title":48,"path":49,"stem":50},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F11.playground","i-lucide-book-open",{"title":53,"path":54,"stem":55,"children":56,"icon":139},"Encodings","\u002Fencodings","2.encodings\u002F00.index",[57,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135],{"title":58,"path":54,"stem":55},"Every encoding",{"title":60,"path":61,"stem":62},"Binary","\u002Fencodings\u002Fbinary","2.encodings\u002F01.binary",{"title":64,"path":65,"stem":66},"Octal","\u002Fencodings\u002Foctal","2.encodings\u002F02.octal",{"title":68,"path":69,"stem":70},"Decimal","\u002Fencodings\u002Fdecimal","2.encodings\u002F03.decimal",{"title":72,"path":73,"stem":74},"Integer","\u002Fencodings\u002Finteger","2.encodings\u002F03.integer",{"title":76,"path":77,"stem":78},"Hex","\u002Fencodings\u002Fhex","2.encodings\u002F04.hex",{"title":80,"path":81,"stem":82},"Base32","\u002Fencodings\u002Fbase32","2.encodings\u002F05.base32",{"title":84,"path":85,"stem":86},"Base45","\u002Fencodings\u002Fbase45","2.encodings\u002F09.base45",{"title":88,"path":89,"stem":90},"Base58","\u002Fencodings\u002Fbase58","2.encodings\u002F10.base58",{"title":92,"path":93,"stem":94},"Base64","\u002Fencodings\u002Fbase64","2.encodings\u002F14.base64",{"title":96,"path":97,"stem":98},"Base85","\u002Fencodings\u002Fbase85","2.encodings\u002F18.base85",{"title":100,"path":101,"stem":102},"basE91","\u002Fencodings\u002Fbase91","2.encodings\u002F19.base91",{"title":104,"path":105,"stem":106},"Base256","\u002Fencodings\u002Fbase256","2.encodings\u002F20.base256",{"title":108,"path":109,"stem":110},"Bech32","\u002Fencodings\u002Fbech32","2.encodings\u002F21.bech32",{"title":112,"path":113,"stem":114},"uuencode","\u002Fencodings\u002Fuuencode","2.encodings\u002F22.uuencode",{"title":116,"path":117,"stem":118},"Quoted-Printable","\u002Fencodings\u002Fquoted-printable","2.encodings\u002F23.quoted-printable",{"title":120,"path":121,"stem":122},"HTML","\u002Fencodings\u002Fhtml","2.encodings\u002F24.html",{"title":124,"path":125,"stem":126},"ITA2","\u002Fencodings\u002Fita2","2.encodings\u002F25.ita2",{"title":128,"path":129,"stem":130},"Prefix codes","\u002Fencodings\u002Fprefix","2.encodings\u002F26.prefix",{"title":132,"path":133,"stem":134},"Chess squares","\u002Fencodings\u002Fsquare","2.encodings\u002F27.square",{"title":136,"path":137,"stem":138},"FEN","\u002Fencodings\u002Ffen","2.encodings\u002F28.fen","i-lucide-library",{"id":141,"title":132,"body":142,"description":923,"extension":924,"links":925,"meta":926,"navigation":927,"path":133,"seo":928,"stem":134,"__hash__":929},"docs\u002F2.encodings\u002F27.square.md",{"type":143,"value":144,"toc":914},"minimark",[145,149,157,218,221,226,233,240,312,315,321,350,354,376,417,424,427,450,454,457,480,572,583,586,622,635,638,680,690,694,701,744,747,751,762,823,827,833,852,865,869,891,910],[146,147],"encoding-facts",{"name":148},"square",[150,151,152,153,156],"p",{},"Each chess square gets one byte, numbered from 0 to 63. The ",[154,155,148],"code",{}," codec turns those bytes into names and back.",[158,159,164],"pre",{"className":160,"code":161,"language":162,"meta":163,"style":163},"language-ts shiki shiki-themes encodings encodings encodings","encode(\"square\", Uint8Array.of(28, 35))                        \u002F\u002F \"e4 d5\"\ndecode(\"square\", \"e4 d5\").bytes                                \u002F\u002F Uint8Array [28, 35]\n","ts","",[154,165,166,196],{"__ignoreMap":163},[167,168,171,175,179,183,186,189,192],"span",{"class":169,"line":170},"line",1,[167,172,174],{"class":173},"sK71F","encode",[167,176,178],{"class":177},"s38Sx","(",[167,180,182],{"class":181},"shU9J","\"square\"",[167,184,185],{"class":177},", Uint8Array.",[167,187,188],{"class":173},"of",[167,190,191],{"class":177},"(28, 35))                        ",[167,193,195],{"class":194},"scIB-","\u002F\u002F \"e4 d5\"\n",[167,197,199,202,204,206,209,212,215],{"class":169,"line":198},2,[167,200,201],{"class":173},"decode",[167,203,178],{"class":177},[167,205,182],{"class":181},[167,207,208],{"class":177},", ",[167,210,211],{"class":181},"\"e4 d5\"",[167,213,214],{"class":177},").bytes                                ",[167,216,217],{"class":194},"\u002F\u002F Uint8Array [28, 35]\n",[150,219,220],{},"A square holds six bits, just like a base64 character. Not bad for a board of 64 squares.",[222,223,225],"h2",{"id":224},"which-square-is-zero","Which square is zero?",[150,227,228,229,232],{},"The default ",[154,230,231],{},"layout: \"a1\""," counts along each rank. It starts with a1 = 0 and b1 = 1. Then a2 = 8, up to h8 = 63. Stockfish counts this way, and so does python-chess.",[150,234,235,236,239],{},"The ",[154,237,238],{},"layout: \"a8\""," option starts at the other end. It counts a8 = 0, b8 = 1 and a1 = 56. That's the order FEN reads the board in.",[158,241,243],{"className":160,"code":242,"language":162,"meta":163,"style":163},"encode(\"square\", Uint8Array.of(0, 63))                         \u002F\u002F \"a1 h8\"\nencode(\"square\", Uint8Array.of(0, 63), { layout: \"a8\" })       \u002F\u002F \"a8 h1\"\ndecode(\"square\", \"e4 a1\", { layout: \"a8\" }).bytes              \u002F\u002F Uint8Array [36, 56]\n",[154,244,245,263,287],{"__ignoreMap":163},[167,246,247,249,251,253,255,257,260],{"class":169,"line":170},[167,248,174],{"class":173},[167,250,178],{"class":177},[167,252,182],{"class":181},[167,254,185],{"class":177},[167,256,188],{"class":173},[167,258,259],{"class":177},"(0, 63))                         ",[167,261,262],{"class":194},"\u002F\u002F \"a1 h8\"\n",[167,264,265,267,269,271,273,275,278,281,284],{"class":169,"line":198},[167,266,174],{"class":173},[167,268,178],{"class":177},[167,270,182],{"class":181},[167,272,185],{"class":177},[167,274,188],{"class":173},[167,276,277],{"class":177},"(0, 63), { layout: ",[167,279,280],{"class":181},"\"a8\"",[167,282,283],{"class":177}," })       ",[167,285,286],{"class":194},"\u002F\u002F \"a8 h1\"\n",[167,288,290,292,294,296,298,301,304,306,309],{"class":169,"line":289},3,[167,291,201],{"class":173},[167,293,178],{"class":177},[167,295,182],{"class":181},[167,297,208],{"class":177},[167,299,300],{"class":181},"\"e4 a1\"",[167,302,303],{"class":177},", { layout: ",[167,305,280],{"class":181},[167,307,308],{"class":177}," }).bytes              ",[167,310,311],{"class":194},"\u002F\u002F Uint8Array [36, 56]\n",[150,313,314],{},"The same e4 is 28 in one layout and 36 in another. Same square, two numbers. Got indices from someone else's tool? Check its numbering first.",[150,316,235,317,320],{},[154,318,319],{},"layout: \"file\""," option counts up each file instead. It starts a1 = 0, a2 = 1 and b1 = 8.",[158,322,324],{"className":160,"code":323,"language":162,"meta":163,"style":163},"decode(\"square\", \"a2 b1\", { layout: \"file\" }).bytes            \u002F\u002F Uint8Array [1, 8]\n",[154,325,326],{"__ignoreMap":163},[167,327,328,330,332,334,336,339,341,344,347],{"class":169,"line":170},[167,329,201],{"class":173},[167,331,178],{"class":177},[167,333,182],{"class":181},[167,335,208],{"class":177},[167,337,338],{"class":181},"\"a2 b1\"",[167,340,303],{"class":177},[167,342,343],{"class":181},"\"file\"",[167,345,346],{"class":177}," }).bytes            ",[167,348,349],{"class":194},"\u002F\u002F Uint8Array [1, 8]\n",[222,351,353],{"id":352},"prefer-coordinates","Prefer coordinates?",[150,355,235,356,359,360,363,364,367,368,371,372,375],{},[154,357,358],{},"pairs: true"," option reads and writes ",[154,361,362],{},"(file, rank)"," pairs. Both coordinates start at 0, like python-chess ",[154,365,366],{},"square_file"," and ",[154,369,370],{},"square_rank",". So ",[154,373,374],{},"(4, 3)"," is e4. Spaces inside the parentheses are optional.",[158,377,379],{"className":160,"code":378,"language":162,"meta":163,"style":163},"encode(\"square\", Uint8Array.of(28, 35), { pairs: true })       \u002F\u002F \"(4, 3) (3, 4)\"\ndecode(\"square\", \"(4, 3) (3, 4)\", { pairs: true }).bytes       \u002F\u002F Uint8Array [28, 35]\n",[154,380,381,399],{"__ignoreMap":163},[167,382,383,385,387,389,391,393,396],{"class":169,"line":170},[167,384,174],{"class":173},[167,386,178],{"class":177},[167,388,182],{"class":181},[167,390,185],{"class":177},[167,392,188],{"class":173},[167,394,395],{"class":177},"(28, 35), { pairs: true })       ",[167,397,398],{"class":194},"\u002F\u002F \"(4, 3) (3, 4)\"\n",[167,400,401,403,405,407,409,412,415],{"class":169,"line":198},[167,402,201],{"class":173},[167,404,178],{"class":177},[167,406,182],{"class":181},[167,408,208],{"class":177},[167,410,411],{"class":181},"\"(4, 3) (3, 4)\"",[167,413,414],{"class":177},", { pairs: true }).bytes       ",[167,416,217],{"class":194},[150,418,419,420,423],{},"Pairs name coordinates, not byte values. The ",[154,421,422],{},"layout"," option still decides the byte.",[150,425,426],{},"Capital files pass too, since puzzles like to shout. Separate squares with whitespace or commas.",[158,428,430],{"className":160,"code":429,"language":162,"meta":163,"style":163},"decode(\"square\", \"E4, D5\").bytes                               \u002F\u002F Uint8Array [28, 35]\n",[154,431,432],{"__ignoreMap":163},[167,433,434,436,438,440,442,445,448],{"class":169,"line":170},[167,435,201],{"class":173},[167,437,178],{"class":177},[167,439,182],{"class":181},[167,441,208],{"class":177},[167,443,444],{"class":181},"\"E4, D5\"",[167,446,447],{"class":177},").bytes                               ",[167,449,217],{"class":194},[222,451,453],{"id":452},"can-one-number-hold-a-whole-board","Can one number hold a whole board?",[150,455,456],{},"Yes. A bitboard gives each of the 64 squares one bit of a 64-bit number. Nice and tight.",[150,458,459,460,367,463,465,466,469,470,472,473,367,476,479],{},"Turn on ",[154,461,462],{},"bitboard",[154,464,201],{}," packs the squares into exactly eight bytes, big-endian. Bit ",[154,467,468],{},"i"," marks square index ",[154,471,468],{}," in the chosen layout. Want hex or bits? The ",[154,474,475],{},"hex",[154,477,478],{},"binary"," codecs already do that.",[158,481,483],{"className":160,"code":482,"language":162,"meta":163,"style":163},"const board = decode(\"square\", \"e4 d5\", { bitboard: true }).bytes; \u002F\u002F Uint8Array [0, 0, 0, 8, 16, 0, 0, 0]\nencode(\"hex\", board)                                           \u002F\u002F \"0000000810000000\"\nencode(\"binary\", board)                                        \u002F\u002F \"00000000 00000000 00000000 00001000 00010000 00000000 00000000 00000000\"\nencode(\"square\", decode(\"hex\", \"000000000000ff00\").bytes, { bitboard: true }) \u002F\u002F \"a2 b2 c2 d2 e2 f2 g2 h2\"\n",[154,484,485,514,529,544],{"__ignoreMap":163},[167,486,487,491,494,497,500,502,504,506,508,511],{"class":169,"line":170},[167,488,490],{"class":489},"skH_V","const",[167,492,493],{"class":177}," board ",[167,495,496],{"class":489},"=",[167,498,499],{"class":173}," decode",[167,501,178],{"class":177},[167,503,182],{"class":181},[167,505,208],{"class":177},[167,507,211],{"class":181},[167,509,510],{"class":177},", { bitboard: true }).bytes; ",[167,512,513],{"class":194},"\u002F\u002F Uint8Array [0, 0, 0, 8, 16, 0, 0, 0]\n",[167,515,516,518,520,523,526],{"class":169,"line":198},[167,517,174],{"class":173},[167,519,178],{"class":177},[167,521,522],{"class":181},"\"hex\"",[167,524,525],{"class":177},", board)                                           ",[167,527,528],{"class":194},"\u002F\u002F \"0000000810000000\"\n",[167,530,531,533,535,538,541],{"class":169,"line":289},[167,532,174],{"class":173},[167,534,178],{"class":177},[167,536,537],{"class":181},"\"binary\"",[167,539,540],{"class":177},", board)                                        ",[167,542,543],{"class":194},"\u002F\u002F \"00000000 00000000 00000000 00001000 00010000 00000000 00000000 00000000\"\n",[167,545,547,549,551,553,555,557,559,561,563,566,569],{"class":169,"line":546},4,[167,548,174],{"class":173},[167,550,178],{"class":177},[167,552,182],{"class":181},[167,554,208],{"class":177},[167,556,201],{"class":173},[167,558,178],{"class":177},[167,560,522],{"class":181},[167,562,208],{"class":177},[167,564,565],{"class":181},"\"000000000000ff00\"",[167,567,568],{"class":177},").bytes, { bitboard: true }) ",[167,570,571],{"class":194},"\u002F\u002F \"a2 b2 c2 d2 e2 f2 g2 h2\"\n",[150,573,574,575,578,579,582],{},"That's 1. e4 d5, the Scandinavian, in eight bytes. And ",[154,576,577],{},"0x000000000000ff00"," is every white pawn still at home on the second rank. The bitboards agree with python-chess's ",[154,580,581],{},"SquareSet",".",[150,584,585],{},"Layout still decides which square each bit is. From a8, the same opening lands on other bits.",[158,587,589],{"className":160,"code":588,"language":162,"meta":163,"style":163},"encode(\"hex\", decode(\"square\", \"e4 d5\", { bitboard: true, layout: \"a8\" }).bytes) \u002F\u002F \"0000001008000000\"\n",[154,590,591],{"__ignoreMap":163},[167,592,593,595,597,599,601,603,605,607,609,611,614,616,619],{"class":169,"line":170},[167,594,174],{"class":173},[167,596,178],{"class":177},[167,598,522],{"class":181},[167,600,208],{"class":177},[167,602,201],{"class":173},[167,604,178],{"class":177},[167,606,182],{"class":181},[167,608,208],{"class":177},[167,610,211],{"class":181},[167,612,613],{"class":177},", { bitboard: true, layout: ",[167,615,280],{"class":181},[167,617,618],{"class":177}," }).bytes) ",[167,620,621],{"class":194},"\u002F\u002F \"0000001008000000\"\n",[150,623,624,625,628,629,631,632,634],{},"Input order doesn't matter, so ",[154,626,627],{},"\"d5 e4\""," gives the same bytes as ",[154,630,211],{},". Encoding writes the squares lowest index first. Empty text gives eight zero bytes, and eight zero bytes give an empty string. ",[154,633,358],{}," works with bitboards too.",[150,636,637],{},"A set has no room for a square twice. And a bitboard is eight bytes, not seven, not nine.",[158,639,641],{"className":160,"code":640,"language":162,"meta":163,"style":163},"decode(\"square\", \"e4 d5 e4\", { bitboard: true })               \u002F\u002F throws: square: e4 at index 6 is already on the board\nencode(\"square\", Uint8Array.of(28, 35), { bitboard: true })    \u002F\u002F throws: square: a bitboard is 8 bytes, not 2\n",[154,642,643,662],{"__ignoreMap":163},[167,644,645,647,649,651,653,656,659],{"class":169,"line":170},[167,646,201],{"class":173},[167,648,178],{"class":177},[167,650,182],{"class":181},[167,652,208],{"class":177},[167,654,655],{"class":181},"\"e4 d5 e4\"",[167,657,658],{"class":177},", { bitboard: true })               ",[167,660,661],{"class":194},"\u002F\u002F throws: square: e4 at index 6 is already on the board\n",[167,663,664,666,668,670,672,674,677],{"class":169,"line":198},[167,665,174],{"class":173},[167,667,178],{"class":177},[167,669,182],{"class":181},[167,671,185],{"class":177},[167,673,188],{"class":173},[167,675,676],{"class":177},"(28, 35), { bitboard: true })    ",[167,678,679],{"class":194},"\u002F\u002F throws: square: a bitboard is 8 bytes, not 2\n",[150,681,682,683,686,687,582],{},"Want hex straight from the CLI? ",[154,684,685],{},"encodings decode square \"e4 d5\" --bitboard -o hex"," prints ",[154,688,689],{},"0000000810000000",[222,691,693],{"id":692},"can-text-become-squares","Can text become squares?",[150,695,696,697,700],{},"Text is encoded as bytes first, and every byte has to fit between 0 and 63. The game result ",[154,698,699],{},"1-0"," fits: its bytes are 49, 45 and 48.",[158,702,704],{"className":160,"code":703,"language":162,"meta":163,"style":163},"encode(\"square\", \"1-0\")                                        \u002F\u002F \"b7 f6 a7\"\nencode(\"square\", \"hi\")                                         \u002F\u002F throws: square: byte 104 at index 0 is over 63, the last square\n",[154,705,706,725],{"__ignoreMap":163},[167,707,708,710,712,714,716,719,722],{"class":169,"line":170},[167,709,174],{"class":173},[167,711,178],{"class":177},[167,713,182],{"class":181},[167,715,208],{"class":177},[167,717,718],{"class":181},"\"1-0\"",[167,720,721],{"class":177},")                                        ",[167,723,724],{"class":194},"\u002F\u002F \"b7 f6 a7\"\n",[167,726,727,729,731,733,735,738,741],{"class":169,"line":198},[167,728,174],{"class":173},[167,730,178],{"class":177},[167,732,182],{"class":181},[167,734,208],{"class":177},[167,736,737],{"class":181},"\"hi\"",[167,739,740],{"class":177},")                                         ",[167,742,743],{"class":194},"\u002F\u002F throws: square: byte 104 at index 0 is over 63, the last square\n",[150,745,746],{},"White wins, and three squares appear. Lowercase letters don't fit: their bytes are over 63.",[222,748,750],{"id":749},"what-does-it-refuse","What does it refuse?",[150,752,753,754,757,758,761],{},"Bad squares fail with the position of the offending character. In ",[154,755,756],{},"e9",", that's index 1, the ",[154,759,760],{},"9",". The wrong text form also gets a hint.",[158,763,765],{"className":160,"code":764,"language":162,"meta":163,"style":163},"decode(\"square\", \"e9\")                                         \u002F\u002F throws: square: \"9\" (U+0039) is not a rank, 1 to 8\ndecode(\"square\", \"(4, 3)\")                                     \u002F\u002F throws: square: \"(\" (U+0028) is not a file, a to h; for (file, rank) pairs, set pairs\ndecode(\"square\", \"e4\", { pairs: true })                        \u002F\u002F throws: square: \"e\" (U+0065) where ( goes; for names such as e4, leave pairs off\n",[154,766,767,785,804],{"__ignoreMap":163},[167,768,769,771,773,775,777,780,782],{"class":169,"line":170},[167,770,201],{"class":173},[167,772,178],{"class":177},[167,774,182],{"class":181},[167,776,208],{"class":177},[167,778,779],{"class":181},"\"e9\"",[167,781,740],{"class":177},[167,783,784],{"class":194},"\u002F\u002F throws: square: \"9\" (U+0039) is not a rank, 1 to 8\n",[167,786,787,789,791,793,795,798,801],{"class":169,"line":198},[167,788,201],{"class":173},[167,790,178],{"class":177},[167,792,182],{"class":181},[167,794,208],{"class":177},[167,796,797],{"class":181},"\"(4, 3)\"",[167,799,800],{"class":177},")                                     ",[167,802,803],{"class":194},"\u002F\u002F throws: square: \"(\" (U+0028) is not a file, a to h; for (file, rank) pairs, set pairs\n",[167,805,806,808,810,812,814,817,820],{"class":169,"line":289},[167,807,201],{"class":173},[167,809,178],{"class":177},[167,811,182],{"class":181},[167,813,208],{"class":177},[167,815,816],{"class":181},"\"e4\"",[167,818,819],{"class":177},", { pairs: true })                        ",[167,821,822],{"class":194},"\u002F\u002F throws: square: \"e\" (U+0065) where ( goes; for names such as e4, leave pairs off\n",[222,824,826],{"id":825},"can-identify-spot-squares","Can identify spot squares?",[150,828,235,829,832],{},[154,830,831],{},"identify"," function tries square names and pairs.",[158,834,836],{"className":160,"code":835,"language":162,"meta":163,"style":163},"identify(\"e4 d5\")[0];                                          \u002F\u002F encoding \"square\"\n",[154,837,838],{"__ignoreMap":163},[167,839,840,842,844,846,849],{"class":169,"line":170},[167,841,831],{"class":173},[167,843,178],{"class":177},[167,845,211],{"class":181},[167,847,848],{"class":177},")[0];                                          ",[167,850,851],{"class":194},"\u002F\u002F encoding \"square\"\n",[150,853,854,855,857,858,861,862,864],{},"It never guesses ",[154,856,422],{},". Read from a8, a1 is byte 56, which prints as ",[154,859,860],{},"8",", and a guess would fall for that. Nor ",[154,863,462],{},": the text reads as the same squares either way, only the packing differs.",[222,866,868],{"id":867},"aliases-subpath-and-cli","Aliases, subpath and CLI",[150,870,871,872,367,875,878,879,881,882,885,886,367,888,582],{},"The aliases ",[154,873,874],{},"squares",[154,876,877],{},"chesssquare"," name ",[154,880,148],{},". The subpath ",[154,883,884],{},"@agntn\u002Fencodings\u002Fchess"," exports ",[154,887,148],{},[154,889,890],{},"CHESS_LAYOUTS",[150,892,893,894,686,897,900,901,208,904,367,907,582],{},"In the CLI, ",[154,895,896],{},"encodings encode square 1-0",[154,898,899],{},"b7 f6 a7",". The flags are ",[154,902,903],{},"--layout",[154,905,906],{},"--pairs",[154,908,909],{},"--bitboard",[911,912,913],"style",{},"html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}",{"title":163,"searchDepth":198,"depth":198,"links":915},[916,917,918,919,920,921,922],{"id":224,"depth":198,"text":225},{"id":352,"depth":198,"text":353},{"id":452,"depth":198,"text":453},{"id":692,"depth":198,"text":693},{"id":749,"depth":198,"text":750},{"id":825,"depth":198,"text":826},{"id":867,"depth":198,"text":868},"Chess squares as bytes, with a choice of board numbering","md",null,{},true,{"title":132,"description":923},"QCYzoOaPpEO-RM_ybE6H-UTRk0taHEE3yPdxYQ0_vTM",[931,933],{"title":128,"path":129,"stem":130,"description":932,"children":-1},"Encode and decode variable-length prefix codes with custom codebooks, truncated binary, unary and gamma",{"title":136,"path":137,"stem":138,"description":934,"children":-1},"Chess positions in FEN as 64 bytes of piece letters or twelve piece bitboards. Castling and clocks in details and a board diagram too",1794584244891]