From 040498a4f8efa1a1ef8e9d5f7e673c591faeb8e3 Mon Sep 17 00:00:00 2001 From: untakenstupidnick Date: Thu, 4 Apr 2019 07:18:54 +0430 Subject: [PATCH] Mac problem --- linux64_exec/sudoku | Bin 28064 -> 28064 bytes sources/sudoku.c | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux64_exec/sudoku b/linux64_exec/sudoku index ba9af21f21a44a4b0be2198d54c23de0540c4588..324721eabb63e045f0f07934e80f44d63d9f099c 100755 GIT binary patch delta 587 zcmZ2*n{mNy#tkh@BJZZ{kiV4s`ifPC@a%_ocWDGp7vbDIgUKL-QD^hXuzn`NhR_5C z5MTk53=F>}PmB{c5nvbCVYW*;m2r=O9v&jTNYiL5krEntOOB zGe+w(icU6+7H3qQoCqX6z+@_joID{~g0T_IH<)}7C^ru*`XO4va5vPv1yJ*#9$+{K z6c+&66M*Krvy&BL#3e5QWkLS_A>sgbwLjGDw?O7f{(_o00cs`(R91F!BT%m)8$@q~ z3PkS%sFh}uH^zuFT7b#W$q#`lBcLjm2|`pdLsiCs)JPTpWkKPG?!p?dEz_WSO{F1v zxuJUHCl|(wOU{PMMyNq#*Fa^LOkNl(&bSinhSQrb#(rRCcJ}v~tQRl0`FY|YMwar# d%#zK^lPj1uE2Q0EW4t{1XHGlg>&cC|@&Nj{er5mw delta 593 zcmZXQ%_~Gv7{>VM?A`aevqlMj2xsCRn&{ zlt^dm!lGnMrAb@MS0&ki1*nE??2d79DDS$=E_a4iL|)a(*|fM*uAk*;jv%>@s^X{8 zN-V@Uc=0`E2!Ax6^mA*~z}r2Z!){ghQv& zC>A9-NaV5ZkS-!kn-R0p)iv>N!X?#Zhq9p>CtFF`W=xt~9FRNI;<#tzX7SMEaH3|o lwhHE#t85`LIcMb)Z(yB{&1+Wu#Dg1du{6C7ADEh{{{`YRd)xp3 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