program.c
//Draws the screen for the player  (works)
Draws the screen for the player  (works)
Draws the screen for the player ( works )
void drawScreen(char (*pBoard)[BOARDSIZE], char (*pShots)[BOARDSIZE]){
  for(int row = 0; row < BOARDSIZE; ++row) {
    for(int col = 0; col < BOARDSIZE; ++col){
      mvaddch(row,col,pShots[row][col]);
      mvaddch(row + BOARDSIZE + 1,col,pBoard[row][col]);
    }
  }
  refresh();
}
void drawScreen ( char ( * pBoard ) [ BOARDSIZE ] , char ( * pShots ) [ BOARDSIZE ] ) { for ( int row = 0 ; row < BOARDSIZE ; ++ row ) { for ( int col = 0 ; col < BOARDSIZE ; ++ col ) { mvaddch ( row , col , pShots [ row ] [ col ] ) ; mvaddch ( row + BOARDSIZE + 1 , col , pBoard [ row ] [ col ] ) ; } } refresh ( ) ; }
Draws the screen for the player  (works)
Draws the screen for the player ( works )