Skip to content
Snippets Groups Projects
Commit 7bd0a02f authored by Sabrina L's avatar Sabrina L
Browse files

Init Board

parent e03aa324
Branches
No related tags found
No related merge requests found
#include "board.h"
void init(){
void init(int col, int line){
struct board board;
board.col = col;
board.line = line;
for(int i = 0; i < col;i++){
for(int j = 0; j < line; j++){
board.data[i][j] = Vide;
}
}
}
\ No newline at end of file
......@@ -4,9 +4,9 @@
enum state{Croix, Cercle, Vide};
struct board{
enum state **data;
int col;
int line;
enum state **data;
};
void init(int col, int line);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment