We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91d2b28 commit ba90d9bCopy full SHA for ba90d9b
posts/visualizing-chess-bitboards.md
@@ -31,7 +31,7 @@ In order to move a piece at `f5` forwards we can shift the bitboard left by 8 bi
31
```js
32
pieceOnF5 = 0x0000000004000000;
33
// Move one rank forward (from f5 to f6)
34
-pieceOnF5 << 8n; // 0x0000000400000000n
+pieceOnF5 << 8; // 0x0000000400000000
35
```
36
37
Why 8? Well, if you picture all of a chessboard's squares lined up in one long row, moving upwards would require you to move 8 places to the left.
0 commit comments