fc2b3d1daa
Update README
2024-12-02 01:52:00 +01:00
97d2446a90
Add rudimentary chess engine
2024-12-02 01:49:39 +01:00
Ole Morud
319428e1bc
Update .clang-format
2024-12-02 01:49:39 +01:00
Ole Morud
863328a3de
Update .clang-format
2023-03-26 19:18:11 +02:00
Ole Morud
4155ed3e87
Reformat code with help of utility functions
2023-03-26 19:18:11 +02:00
Ole Morud
44c2ae5290
reformat and refactor a bit
2023-03-26 19:18:11 +02:00
Ole Morud
311029db1f
Use SVG file to display chessboard in README.md
...
Used https://github.com/wader/ansisvg to render svg, will match terminal for a given system unless someone decides to use a sans-serif font for their terminal
2023-03-22 21:46:31 +01:00
Ole Morud
60942dcfd2
Refactor
2023-03-22 21:45:29 +01:00
Ole Morud
f18c9215e5
WIP refactor
2023-03-22 20:35:43 +01:00
Ole Morud
39f9d848b5
Larp as industry code with doxygen
2023-03-20 00:01:30 +01:00
Ole Morud
e5c89cca35
Makefile: Use add.sanitizer
2023-03-19 21:55:49 +01:00
Ole Morud
a33fdbc26a
Rename pos_t -> index_t, update formatting
2023-03-19 21:55:17 +01:00
Ole Morud
e8ce363579
Update README.md
2023-03-19 21:24:31 +01:00
Ole Morud
6dbc236a47
Update README
2023-03-19 21:21:10 +01:00
Ole Morud
4e4a28b910
clang-format chess.c
2023-03-19 21:18:54 +01:00
Ole Morud
c25b983674
add .clang-format
2023-03-19 21:15:54 +01:00
Ole Morud
79d776f897
Improve formatting
2023-03-19 20:37:46 +01:00
Ole Morud
37fc5e7838
Add validation for remaining pieces
2023-03-19 20:37:07 +01:00
Ole Morud
7a2f961c69
Refactor diagonal move check to separate function
2023-03-19 18:09:32 +01:00
Ole Morud
4dbd0140d0
Update Makefile
2023-03-19 17:54:24 +01:00
Ole Morud
1fa1aaac8a
Add bishop move validation and use typedefs
2023-03-19 17:54:24 +01:00
Ole Morud
0795375a48
Add tile_t, pos_t and make common values #define'd
2023-03-19 15:16:09 +01:00
olemorud
94f8c0ca42
Remove implicit fallthrough
2023-03-19 13:49:58 +01:00
olemorud
3a8389dc4d
Fix segfault
2023-03-19 13:49:50 +01:00
Ole Morud
0c0a785c7a
Update README.md
2023-03-19 13:49:50 +01:00
Ole Morud
c5f6be3c3c
Add comments for is_valid function
2023-03-19 13:49:42 +01:00
Ole Morud
e429c6ea7d
Add move validation for pawns
2023-03-19 13:49:32 +01:00
Ole Morud
076ef2071e
Update comments
2023-03-19 13:49:24 +01:00
Ole Morud
36005acfec
Update README
2023-03-19 13:49:03 +01:00
Ole Morud
9006f526e8
fixup
2023-03-19 13:47:23 +01:00
Ole Morud
2b39393a66
Update README.md
2023-03-19 13:46:35 +01:00
Ole Morud
7c95a893da
Move inputs, no checks yet
2023-03-19 13:46:35 +01:00
Ole Morud
9bfbf8e412
Formatting
2023-03-19 13:46:20 +01:00
Ole Morud
fc7cb88029
Use rgb for setcolor
2023-03-19 13:45:52 +01:00
Ole Morud
2c9d136e5a
Clean up code and improve comments
2023-03-19 13:41:59 +01:00
Ole Morud
ad583fe1e8
Create README.md
2023-03-19 13:41:59 +01:00
Ole Morud
19b0f8835f
Create .gitignore
2023-03-19 13:41:53 +01:00
Ole Morud
c9103840d9
Add board display feature
2023-03-19 13:41:28 +01:00
Ole Morud
3f5b33b0b8
Create Makefile
2023-03-19 13:41:28 +01:00
Ole Morud
c2228faa22
Initial commit
2022-06-09 16:40:47 +02:00