diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-08-20 14:41:35 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-08-20 14:41:35 +0300 |
commit | 0725b563b85ba516b5dd7b104112ee0637ec57f5 (patch) | |
tree | 93808f2a92853d50ee86b6c4349eec17d75c6471 | |
parent | e729c408f4af4fe4315eecf80211ca17917b1cb2 (diff) | |
download | c-chess-0725b563b85ba516b5dd7b104112ee0637ec57f5.tar.gz |
fix!: dumb reverse ordering in sort_moves
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -516,7 +516,7 @@ int get_piece_raw_value(int piece) { } int compare_moves(const void* a, const void* b) { - return ((Move*)a)->value - ((Move*)b)->value; + return ((Move*)b)->value - ((Move*)a)->value; } void sort_moves(Move* moves, int moves_count, int* board) { |