game_board class might need more function but this is for now
Diff: game_board.h
- Revision:
- 0:06bd2763aa53
- Child:
- 2:1a54e4ed2669
diff -r 000000000000 -r 06bd2763aa53 game_board.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/game_board.h Thu Dec 03 09:43:27 2015 +0000 @@ -0,0 +1,17 @@ +#include <iostream> +using namespace std; + +class game_board +{ + private: + 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]; + public: + 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 + bool looser(); //done + void place_hit_miss_enemy (int row, int colum, bool hit_miss);//done +};