game_board class might need more function but this is for now
game_board.h@0:06bd2763aa53, 2015-12-03 (annotated)
- Committer:
- AndyTran
- Date:
- Thu Dec 03 09:43:27 2015 +0000
- Revision:
- 0:06bd2763aa53
- Child:
- 2:1a54e4ed2669
duck_soup got most of the game_board class done
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndyTran | 0:06bd2763aa53 | 1 | #include <iostream> |
AndyTran | 0:06bd2763aa53 | 2 | using namespace std; |
AndyTran | 0:06bd2763aa53 | 3 | |
AndyTran | 0:06bd2763aa53 | 4 | class game_board |
AndyTran | 0:06bd2763aa53 | 5 | { |
AndyTran | 0:06bd2763aa53 | 6 | private: |
AndyTran | 0:06bd2763aa53 | 7 | unsigned char _gameboard [6][27]; |
AndyTran | 0:06bd2763aa53 | 8 | string A_row,B_row,C_row,D_row,E_row,F_row,N_row, label; |
AndyTran | 0:06bd2763aa53 | 9 | int _my_ship [5][5]; |
AndyTran | 0:06bd2763aa53 | 10 | public: |
AndyTran | 0:06bd2763aa53 | 11 | void new_game_board (); // done |
AndyTran | 0:06bd2763aa53 | 12 | bool place_hit_miss_friendly (int row, int colum); //check |
AndyTran | 0:06bd2763aa53 | 13 | void place_ship(int row, int colum); //done |
AndyTran | 0:06bd2763aa53 | 14 | string get1row (int row); //done |
AndyTran | 0:06bd2763aa53 | 15 | bool looser(); //done |
AndyTran | 0:06bd2763aa53 | 16 | void place_hit_miss_enemy (int row, int colum, bool hit_miss);//done |
AndyTran | 0:06bd2763aa53 | 17 | }; |