Skip to content

Commit

Permalink
Merge pull request #5 from Dykn0ww/master
Browse files Browse the repository at this point in the history
corrected level showing if not entered
  • Loading branch information
krkartikay authored Oct 16, 2017
2 parents 1ce27db + b6cc795 commit e94e03a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ int main(int argc, char const *argv[]){
return 0;
#endif
//what level you selected
printf("LEVEL = %s \n",argv[1]);
if(argv[1] != '\0'){
printf("LEVEL = %s \n",argv[1]);
}
else{
puts("LEVEL = 4 (default)\n");
}

// Setup intial position
position *current_position;
Expand Down

0 comments on commit e94e03a

Please sign in to comment.