Browse Source

Correction de « valid_move »

master
Bastien 8 years ago
committed by Squiz
parent
commit
7488e92d60
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      main.c

+ 2
- 1
main.c View File

@ -214,7 +214,7 @@ enum bool valid_move(const struct move_t move, const struct move_t previous_move
case 1:
return false;
case 3:
return true;
return (previous_move.start_pos == -1 && previous_move.end_pos == -1);
}
}
} while(j++ < 6);
@ -416,3 +416,4 @@ int main(int argc, char** argv) {
return 0;
}

Loading…
Cancel
Save