84 Commits

Author SHA1 Message Date
a83ccdd054 Add Makefile 2024-10-21 17:51:29 +02:00
ekzyis
d5723e7e17 Fix parse error on trailing spaces v0.3.1 2024-10-21 15:33:56 +00:00
ec8384f282 Fetch me from API + low balance warnings v0.3.0 2024-10-19 19:48:41 +02:00
e7498352b8 Use lightningvolt.ttf for coordinates v0.2.2 2024-10-19 19:01:29 +02:00
da5f67df46 Respond with e5 if initial move was given else e4 v0.2.1 2024-10-18 23:15:51 +02:00
8347bf0cbc Highlight last move v0.2.0 2024-10-18 22:24:41 +02:00
7a5b044b9d Add info to game starts 2024-10-18 21:38:36 +02:00
392cf19ae6 Parse checkmates but don't verify v0.1.3 2024-10-16 20:18:42 +02:00
c1ad076828 Move error handling into own function v0.1.2 2024-10-16 19:55:26 +02:00
b6991ce3e5 Ignore nested replies 2024-10-16 19:51:55 +02:00
2037fb0578 Remove noisy log message 2024-10-16 19:46:50 +02:00
894ad95d73 Move logic into alreadyHandled function 2024-10-16 19:46:50 +02:00
bd24198b05 Move logic into isRecent function 2024-10-16 19:46:50 +02:00
ca2ccc569d Fix parse error during game update v0.1.1 2024-10-16 05:21:24 +02:00
0a877f9f27 Fix API key env var 2024-10-16 05:06:55 +02:00
58b1eabadf Fix EntityTooSmall error from S3 2024-10-16 04:59:57 +02:00
60b4739ac3 Fix empty algebraic notation returned 2024-10-16 03:34:48 +02:00
e414728965 Consistent logging 2024-10-16 03:30:18 +02:00
eb82b89571 Ignore old notifications 2024-10-16 03:28:39 +02:00
a346a849db Use meId from prod 2024-10-16 03:16:41 +02:00
506cb7f6f1 Fix error message 2024-10-16 03:13:55 +02:00
dbf10e6980 Fix image uploads with snappy v0.6.1 2024-10-16 03:09:24 +02:00
cec8aaf274 Ignore known parents 2024-09-26 19:54:38 +02:00
f3cd10cbb8 Only reply on successful parse v0.1.0 2024-09-26 19:49:27 +02:00
d7645edea9 Parse algebraic notation as input 2024-09-26 18:37:32 +02:00
bf481bc452 Use first line that starts with @chess to start game 2024-09-26 18:06:21 +02:00
fe82dee3bb Fix space in algebraic notation 2024-09-26 18:05:13 +02:00
ee4e1f0edf Improve error message wrapping 2024-09-26 11:20:52 +02:00
5729ae631a Fix Qex6 move 2024-09-26 11:20:36 +02:00
31d9ff02d5 Improve error message 2024-09-26 11:11:14 +02:00
d1315b931b Fix Bh4+ move
target was calculated without considering any suffices like + so it became "4+" instead of "h4".
2024-09-26 11:05:08 +02:00
2dc7cbf213 Add fromX, fromY to queen move 2024-09-26 10:40:29 +02:00
0175ac077f Add queenside castle 2024-09-26 10:38:40 +02:00
7aa65f4ec0 Add kingside castle 2024-09-26 10:30:04 +02:00
be247e1f46 Add test for pins 2024-09-26 09:50:28 +02:00
908cc1cfda Add checks 2024-09-26 09:50:07 +02:00
aa072ca4aa Add pawn promotion 2024-09-26 07:32:57 +02:00
d98c0c221d Remove TODO about path collision
This is handled in the move function of the pieces.
2024-09-26 07:11:45 +02:00
bbcd0b7725 Add TODO about ambiguous queen moves 2024-09-26 07:10:58 +02:00
4a3315eaa0 Fix ambiguous knight moves 2024-09-26 07:05:51 +02:00
bab667d0ed Fix ambiguous rook moves 2024-09-26 07:05:51 +02:00
e6f9c529f8 Parse file and rank from move
I realized that ambiguous moves might require the file _and_ rank.

Also, ambiguous moves are not limited to capturing moves.
2024-09-26 06:25:41 +02:00
87856f694d Test bishop captures 2024-09-26 04:02:28 +02:00
6a60aee89a Add more tests about blocked paths 2024-09-26 03:50:36 +02:00
cb92e66580 Opt-in to parallel tests
Tests now take 2 seconds to complete. They took 12 seconds before!
2024-09-26 02:51:37 +02:00
8f2dc00d9f Fix missing assertions for b.Parse and b.Move 2024-09-26 02:49:20 +02:00
6fefeb44f5 Test ambiguous pawn captures 2024-09-26 02:39:53 +02:00
a9a4216d4e Fix ambiguous knight capture 2024-09-26 02:27:51 +02:00
8f70fcb552 Return captureFrom as column index 2024-09-26 01:52:52 +02:00
fddbd145f3 Use inline move function for early returns 2024-09-26 01:08:11 +02:00