Skip to content

Commit ba90d9b

Browse files
committed
remove bigint literal
1 parent 91d2b28 commit ba90d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/visualizing-chess-bitboards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In order to move a piece at `f5` forwards we can shift the bitboard left by 8 bi
3131
```js
3232
pieceOnF5 = 0x0000000004000000;
3333
// Move one rank forward (from f5 to f6)
34-
pieceOnF5 << 8n; // 0x0000000400000000n
34+
pieceOnF5 << 8; // 0x0000000400000000
3535
```
3636

3737
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

Comments
 (0)