From 0725b563b85ba516b5dd7b104112ee0637ec57f5 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 20 Aug 2022 14:41:35 +0300 Subject: fix!: dumb reverse ordering in sort_moves --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index bfe2017..f8f47e2 100644 --- a/src/main.c +++ b/src/main.c @@ -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) { -- cgit v1.2.3