game_board class might need more function but this is for now

Dependents:   Final_Project

Revision:
2:1a54e4ed2669
Parent:
1:f4ece2e5a8f6
Child:
3:e21ecfae42e4
--- a/game_board.cpp	Thu Dec 03 09:48:04 2015 +0000
+++ b/game_board.cpp	Sat Dec 05 10:23:50 2015 +0000
@@ -5,7 +5,7 @@
 
 void game_board::new_game_board ()
 {
-   int i,j;
+   //int i,j;
    F_row = "F _ _ _ _ _ _   F _ _ _ _ _ _\n\r";
    E_row = "E _ _ _ _ _ _   E _ _ _ _ _ _\n\r";
    D_row = "D _ _ _ _ _ _   D _ _ _ _ _ _\n\r";
@@ -14,13 +14,7 @@
    A_row = "A _ _ _ _ _ _   A _ _ _ _ _ _\n\r";
    N_row = "  1 2 3 4 5 6     1 2 3 4 5 6\n\r";
    label = "Friendly        Enemy\n\r";
-   for (i = 0; i < 6; i++)
-   {
-        for (j = 0; j < 6; j++)
-        {
-            _my_ship [i][j] = 0; //initialize ship matrix to 0
-        }    
-   }
+   
 };
 bool game_board::place_hit_miss_friendly  (int row, int colum){
     if (_my_ship[row-1][colum-1] >= 1){
@@ -90,7 +84,7 @@
     string r_row;
     switch (row - 1)
     {
-       case 0: r_row = F_row ;
+       case 0: r_row = F_row;
                break;
        case 1: r_row = E_row;
                break;
@@ -107,7 +101,7 @@
        case 7: r_row = label;
                break; 
     }
-    return r_row;
+    return (r_row);
 };
 bool game_board::looser(){
     int i,j,ship_lost = 0;