Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Player.h
00001 #include <iostream> 00002 #include <string.h> 00003 #include "globals.h" 00004 00005 //CODE 00006 //0 = water 00007 //1 = shot fired 00008 //2 = ship 00009 class Player { 00010 public: 00011 explicit Player(); 00012 ~Player(); 00013 void PrintBoard(); 00014 void PrintEnemyBoard(); 00015 void Shot(int i, int j, int hit); 00016 int EnemyShot(int i, int j); 00017 void PlaceShips(int i, int j); 00018 int getColor(int i, int j); 00019 int getEnemyColor(int i, int j); 00020 bool presetShips(int con); 00021 00022 private: 00023 int** board; 00024 int** enemyBoard; 00025 }; 00026
Generated on Thu Jul 14 2022 20:08:03 by
1.7.2