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

Ajout de la fonction get_grid

parent fdbd8d16
No related merge requests found
......@@ -59,3 +59,8 @@ struct Grid* grid_new(int x, int y)
new_strut_grid->game_grid = new_grid;
return new_strut_grid;
}
enum CaseType get_grid(struct Grid* grid, int x, int y)
{
return grid->game_grid[coordonner_vers_indice(x, y, grid)];
}
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