Permalink
Browse files

Added the controle continu modifications.

Cosmetic changes only, but anyway, everything is gonna be all right.
I love you Marina
  • Loading branch information...
1 parent e667b41 commit 6eb52751ac15b90b668f86456fe46e30fea1b620 @Malphaet committed May 21, 2012
Showing with 18 additions and 3 deletions.
  1. +15 −0 Sudoku/configure
  2. +1 −1 Sudoku/include/constants.h
  3. +2 −2 Sudoku/src/tools.c
View
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+function exist()
+{
+ if [ -d $1 ]
+ then echo "Check $1 directory ... done"
+ else
+ echo "Creating $1 directory"
+ mkdir "bin"
+ fi
+}
+
+
+exist 'bin/'
+exist 'obj/'
@@ -31,7 +31,7 @@
#if DIM<10
#define GBSIZE (2*DIM+4+3*(DIM/3-2))
#else
-#define GBSIZE (3*DIM+4+3*(DIM/3-2))
+#define GBSIZE (2*DIM+1+DIM_Region*2*(DIM/3-2))
#endif
#endif
View
@@ -224,7 +224,7 @@ void affiche_grille(GRILLE grille){
printf("\n"); for (j=0;j<GBSIZE;j++) printf("-"); printf("\n");
for (i=0;i<DIM;i++){
printf("| ");
- for (j=0;j<DIM; j++){ printf("%d ",grille[i][j]->value); if ((j+1)%3==0) printf("| "); }
+ for (j=0;j<DIM; j++){ printf("%d ",grille[i][j]->value); if ((j+1)%DIM_Region==0) printf("| "); }
if ((i+1)%DIM_Region==0) { printf("\n"); for (j=0;j<GBSIZE;j++) printf("-"); }
printf("\n");
}
@@ -237,7 +237,7 @@ void affiche_grille_candidats(GRILLE grille){
printf("\n"); for (j=0;j<GBSIZE;j++) printf("-"); printf("\n");
for (i=0;i<DIM;i++){
printf("| ");
- for (j=0;j<DIM; j++){ printf("%d ",grille[i][j]->nb_candidats); if ((j+1)%3==0) printf("| "); }
+ for (j=0;j<DIM; j++){ printf("%d ",grille[i][j]->nb_candidats); if ((j+1)%DIM_Region==0) printf("| "); }
if ((i+1)%DIM_Region==0) { printf("\n"); for (j=0;j<GBSIZE;j++) printf("-"); }
printf("\n");
}

0 comments on commit 6eb5275

Please sign in to comment.