Sebastian Lague
40ecb802fa
Bump version to 1.17
2023-07-29 14:40:10 +02:00
Sebastian Lague
4d5ea5d7ad
Allow tokens to be excluded from count with // #Debug
2023-07-29 13:59:06 +02:00
Sebastian Lague
282048c796
Small cleanup
2023-07-29 11:25:02 +02:00
Inconspicuous Semicolon
a1fdbee6ba
Create Function GetPieceAttacks
...
This function allows the length of code to be reduced, by allowing all piece attacks to be queried in the same loop without having to check which function needs to be checked.
For example a loop to check all piece attacks will now look like:
```
for (int square = 0; square < 64; ++square)
{
for (int piece = 0; piece < 6; ++piece)
{
contention[square] += GetPieceAttacks((PieceType)piece, new Square(square), board, isWhiteFriendly);
contention[square] -= GetPieceAttacks((PieceType)piece, new Square(square), board, !isWhiteFriendly);
}
}
```
Instead of:
```
for (int square = 0; square < 64; ++square)
{
for (int piece = 0; piece < 6; ++piece)
{
switch ((PieceType)piece)
{
PieceType.Pawn => ...,
PieceType.Knight => ...,
...,
...,
}
}
}
```
This better suits the limits of the challenge by reducing the amount of lexemes required to fetch the same information.
2023-07-28 23:35:30 +01:00
Sebastian Lague
5aa54e4e51
Optimize board.SquareIsAttackedByOpponent()
2023-07-27 13:35:55 +02:00
Sebastian Lague
960655c5a8
Bump version 1.16
2023-07-27 00:01:07 +02:00
Sebastian Lague
fed725de59
Add opponent time remaining and game start time to Timer
2023-07-26 12:16:54 +02:00
Sebastian Lague
0d6abe1ff0
Add board.ForceSkipTurn() to skip a turn even when in check (use at own peril)
2023-07-26 10:54:56 +02:00
Sebastian Lague
779c7f8fb1
Update readme with tournament startpos info
2023-07-26 10:14:34 +02:00
Sebastian Lague
78a3289390
Add V1.15 notes
2023-07-25 22:46:09 +02:00
Sebastian Lague
844eb274d5
Bump version to 1.15
2023-07-25 22:44:41 +02:00
Sebastian Lague
f1ed65c219
Refactor bitboard visualization
2023-07-25 22:02:44 +02:00
Sebastian Lague
6ae5aa695f
Add VisualizeBitboard function to BitboardHelepr
2023-07-25 21:45:08 +02:00
Sebastian Lague
a71ba0dc9c
Add MIT License
2023-07-25 19:51:20 +02:00
Sebastian Lague
29caae5b56
Fix missing capture type for en-passant
2023-07-25 17:52:54 +02:00
Sebastian Lague
c5f13b9001
Merge branch 'pr/321'
2023-07-25 17:37:22 +02:00
Sebastian Lague
c318cb4ca0
Fix wrong piecetype in GameMoveHistory
2023-07-25 17:23:44 +02:00
laurirasanen
b35371dc2a
Add test for invalid capture pieces
2023-07-25 17:15:50 +03:00
Sebastian Lague
c9242fd749
V1.14 notes
2023-07-24 23:30:09 +02:00
Sebastian Lague
c0085a8bac
Bump version 1.14
2023-07-24 23:29:41 +02:00
Sebastian Lague
46ae3c2e20
Expose game start fen and game move history
2023-07-24 23:09:12 +02:00
Sebastian Lague
188f6f8d3a
Expose insufficient material and repeated position functions
2023-07-24 22:51:54 +02:00
Sebastian Lague
d18b6702f2
Expose game repetition history and 50 move counter
2023-07-24 22:36:37 +02:00
Sebastian Lague
eb28f8eb2f
Fix missing pieces UI for non-ascii paths
2023-07-24 17:43:57 +02:00
Sebastian Lague
87a2ef31eb
Add link to community-run discord server
2023-07-24 00:53:47 +02:00
Sebastian Lague
2d0c07c13c
Add V1.13 patch notes
2023-07-23 23:11:57 +02:00
Sebastian Lague
82dcb5f524
Bump version to 1.13
2023-07-23 23:09:19 +02:00
Sebastian Lague
4cdfc57f04
Fix fen/zobrist en-passant inconsistency
2023-07-23 22:34:40 +02:00
Sebastian Lague
085baea286
Add alternate way to get legal moves
...
board.GetLegalMovesNonAlloc()
2023-07-23 21:47:32 +02:00
Sebastian Lague
a56dca0165
Fix warning in board class
2023-07-23 19:42:40 +02:00
Sebastian Lague
1d2368295c
Fix occasional crash on bot timeout during match
2023-07-23 19:40:34 +02:00
Sebastian Lague
cc3f49319b
Add more info about running the project
2023-07-23 19:27:47 +02:00
Sebastian Lague
9700276b51
Allow for newline at end of Fens.txt file
...
Merge pull request #195 from joshuajeschek/fens-newline
2023-07-23 16:47:08 +02:00
Sebastian Lague
0f021277c4
Some tweaks to README for clarity
2023-07-23 16:43:34 +02:00
Sebastian Lague
ee8db0ef9f
Update memory limit description
2023-07-23 10:22:13 +02:00
Sebastian Lague
436926fa71
Update rules with initialization time limit
2023-07-23 10:04:58 +02:00
Joshua Jeschek
3863675e6a
fix: allow for empty lines in Fens.txt file
2023-07-22 22:41:25 +02:00
Sebastian Lague
d4dd023852
Bump version to 1.12
2023-07-22 22:05:52 +02:00
Sebastian Lague
5dc587694c
Fix window resize glitch on some platforms
...
Merge pull request #177 from gamma-delta/prs/fix-resizing
2023-07-22 21:54:36 +02:00
Sebastian Lague
96cdff5d24
Merge branch 'Dev'
2023-07-22 21:45:13 +02:00
Sebastian Lague
c3c8abed91
Detect same colour bishops draw (insufficient material)
2023-07-22 21:19:45 +02:00
Sebastian Lague
8281130c9a
Fix fifty move counter not updating correctly during search
2023-07-22 20:33:46 +02:00
petrak@
dea95e0468
Fix resizing the window breaking things: see #131
...
This PR fixes #130 . It has exactly the same fix as PR #131 , but doesn't
include other changes to the json files and such.
@dudecon: pro tip! Learn how to `git rebase`. It lets you re-write
history, only allow certain parts of commits, etc... Also thanks for the
code for the fix -- I would have no idea how to do that. You're the
MVP here.
2023-07-22 12:10:03 -05:00
Sebastian Lague
385851a329
Update rules to allow for 2 submissions
2023-07-22 15:08:10 +02:00
Sebastian Lague
e83a0d5686
Update README.md
2023-07-22 14:52:26 +02:00
Sebastian Lague
918a6942fd
Updated Change Log
2023-07-22 13:47:48 +02:00
Sebastian Lague
8ed36b9205
Bump minor version (1.11)
2023-07-22 13:42:16 +02:00
Sebastian Lague
39e6a868be
Fix board UI coordinates when playing black
2023-07-22 13:40:05 +02:00
Sebastian Lague
1e33246f21
Merge branch 'pr/133' into Dev
2023-07-22 13:24:19 +02:00
Sebastian Lague
79ab3f2919
fix typo in board class
2023-07-22 13:19:06 +02:00