Commit Graph

19 Commits

Author SHA1 Message Date
Ole Morud
a33fdbc26a Rename pos_t -> index_t, update formatting 2023-03-19 21:55:17 +01:00
Ole Morud
4e4a28b910 clang-format chess.c 2023-03-19 21:18: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
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
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
9006f526e8 fixup 2023-03-19 13:47:23 +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
c9103840d9 Add board display feature 2023-03-19 13:41:28 +01:00
Ole Morud
c2228faa22 Initial commit 2022-06-09 16:40:47 +02:00