Skip to content
Snippets Groups Projects
Commit 556d2fb3 authored by Arnaud Albiez's avatar Arnaud Albiez
Browse files

Ajout affichage_grid

parent 3c04f9d0
Branches
No related merge requests found
...@@ -68,3 +68,13 @@ enum CaseType get_grid(struct Grid* grid, int x, int y) ...@@ -68,3 +68,13 @@ enum CaseType get_grid(struct Grid* grid, int x, int y)
} }
else{return -1;} else{return -1;}
} }
void Affichage_grid(struct Grid* grid)
{
for(int i = 0; i<grid->column_number; i++)
{
for(int j = 0 ; j < grid->row_number; j++)
printf(get_grid(grid, i, j));
printf("\n");
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment