diff --git a/linux64_exec/sudoku b/linux64_exec/sudoku index ba9af21..324721e 100755 Binary files a/linux64_exec/sudoku and b/linux64_exec/sudoku differ diff --git a/sources/sudoku.c b/sources/sudoku.c index a4e9d81..cbf5a72 100644 --- a/sources/sudoku.c +++ b/sources/sudoku.c @@ -19,7 +19,7 @@ compile with -lncurses NOTE: This program is only made for entertainment porpuses. The puzzles are generated by randomly clearing tiles on the table and are guaranteed to have a solution , but are not guaranteed to have only one unique solution. */ typedef signed char byte; -byte wait=0, waitcycles=0; +byte _wait=0, waitcycles=0;//apparently 'wait' conflicts with a variable in a library macOS includes by default byte size,s;//s=size*size byte py,px; byte diff; @@ -136,8 +136,8 @@ bool fill_with(char board[s][s],char fillwith){//returns 1 on failure void fill(char board[s][s]){ for(byte num=1;num<=s;num++){//it fills random places in the board with 1s, then random places in the remaining space with 2s and so on... if(num==4){//something that randomly happens - wait=(wait+1)%60; - if(!wait && waitcycles<3) + _wait=(_wait+1)%60; + if(!_wait && waitcycles<3) waitcycles++; } if ( fill_with(board,int2sgn(num) ) ){ @@ -147,7 +147,7 @@ void fill(char board[s][s]){ if(waitcycles==3) mvaddstr(2,0,"(You can set SUDOKU_FASTGEN if you just want to see if it works)"); move(0,45); - for(byte b=0;b