game_board class might need more function but this is for now

Dependents:   Final_Project

Revision:
2:1a54e4ed2669
Parent:
0:06bd2763aa53
Child:
3:e21ecfae42e4
--- a/game_board.h	Thu Dec 03 09:48:04 2015 +0000
+++ b/game_board.h	Sat Dec 05 10:23:50 2015 +0000
@@ -4,11 +4,23 @@
 class game_board
 {
     private:
-        unsigned char _gameboard [6][27];
+        //unsigned char _gameboard [6][27];
         string A_row,B_row,C_row,D_row,E_row,F_row,N_row, label;
-        int _my_ship [5][5];
+        int _my_ship [6][6];
     public:
-        void new_game_board (); // done
+        game_board(){
+           int i;
+           for (i = 0; i < 6; i++);
+           {
+               _my_ship[i][0] = 0;
+               _my_ship[i][1] = 0;
+               _my_ship[i][2] = 0;
+               _my_ship[i][3] = 0;
+               _my_ship[i][4] = 0;
+               _my_ship[i][5] = 0;
+           }
+        };
+        void new_game_board(); // done
         bool place_hit_miss_friendly (int row, int colum); //check
         void place_ship(int row, int colum); //done
         string get1row (int row); //done