This commit is contained in:
Racoonicorn 2016-12-24 18:51:24 +01:00 committed by GitHub
parent 6fd15c56cc
commit 0ea3c3652a
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#define VERSION "0.21" #define VERSION "0.22"
#define N 9 #define N 9
#include <stdio.h> #include <stdio.h>
@ -102,7 +102,7 @@ void ranking () {
system("clear"); system("clear");
printf ("Best results: \n\n"); printf ("Best results: \n\n");
printed = 0; printed = 0;
for (i = 0; result[i+1].best != 0; i++) { for (i = 0; result[i].best != 0; i++) {
if ((result[i].grid == grid_val || grid_val == 1) && printed < 10) { if ((result[i].grid == grid_val || grid_val == 1) && printed < 10) {
time_string[i] = ctime(&result[i].res_time); time_string[i] = ctime(&result[i].res_time);
printf ("# %d\t%3d moves\t- %dx%d matrix\t- %s", printed + 1, result[i].best, result[i].grid, result[i].grid, time_string[i]); printf ("# %d\t%3d moves\t- %dx%d matrix\t- %s", printed + 1, result[i].best, result[i].grid, result[i].grid, time_string[i]);