subject

"Battleboats" is a probability-based board game that challenges the user to locate enemy boats hidden on a rectangular 10x10 grid. The purpose of the game is to locate and destroy every enemy boat in the least number of guesses. Each boat consists of n squares arranged in a row on the board. The game proceeds as players alternatingly guess squares on their opponent’s board in an attempt to "hit" their boats. A boat is "sunk" when each square that it occupies is "hit" by the opponent’s guess. It is important for the game to keep track of the position and orientation of each boat on the board, as well as which squares of the boat have been hit. Your task for the second part of this assignment is to design a BattleBoat class to maintain all the necessary information for a single boat. (Assume that the game board contains multiple instances of the BattleBoat class, one for each boat.)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
"Battleboats" is a probability-based board game that challenges the user to locate enemy boats hidde...
Questions
question
Mathematics, 26.01.2021 19:10
question
English, 26.01.2021 19:10
question
Computers and Technology, 26.01.2021 19:10
question
History, 26.01.2021 19:10
question
Mathematics, 26.01.2021 19:10
question
Advanced Placement (AP), 26.01.2021 19:10
question
Arts, 26.01.2021 19:10
Questions on the website: 13722363