#include #include char matrix[6][7]; /* board size is [6][7] is shown as [5][6] as [0][0] exist */ void init_matrix(void); void disp_matrix(void); int main(){ /*sets Done to ' ' and interlize the matrix so everything in matrix to ' '*/ init_matrix(); disp_matrix(); } /* Sub rutines section under here */ /* Initialize the matrix. */ void init_matrix(void) { int i, j; for(i=0; i<6;i++) for(j=0; j<7; j++) matrix[i][j] = ' '; } /* Display the matrix on the screen. */ void disp_matrix(void) { int t; for(t=0; t<6; t++) { printf("| %c | %c | %c | %c | %c | %c | %c |",matrix[t][0], matrix[t][1], matrix [t][2]); if(t!=7)printf("\n|---|---|---|---|---|---|---|\n"); } printf("\n"); }