Permalink
Browse files

Fixed figures disposition

  • Loading branch information...
1 parent b40d15e commit 67ef84c048b7774d5a00b68bcd213e0b3ccea4f4 @MOZGIII MOZGIII committed May 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/client/helpers.c
@@ -106,6 +106,8 @@ void print_desk(desk_t desk) {
int i, j;
int cycle = 1;
+ printf("\n");
+
for(i = 0; i < 8; i++) {
cycle = !cycle;
printf("%d |", (7 - i) + 1);
@@ -115,7 +117,7 @@ void print_desk(desk_t desk) {
cycle ? printf("\033[43m") : printf("\033[40m");
printf(" ");
- cell_t * cell = &desk.cells[(7 - i)*8 + j];
+ cell_t * cell = &desk.cells[i*8 + (7 - j)];
switch(cell->color) {
case FIGURE_COLOR_WHITE:

0 comments on commit 67ef84c

Please sign in to comment.