(a) Yes, 1 field ship on board 10 x 10 = 50 shots. it will be 50% chance, 100 field and 50 shots.
(b) Yes, 2 field ship on board 10 x 10 = 50 shots. it will be 50% chance, 100 fields and 50 shots.
(c) No, 3 field ship on board 10 x 10 = 49 shots. it will be 49% chance, 100 fields and 49 shots.
(d) No, 4 field ship on board 10 x 10 = 49 shots. it will be 49% chance, 100 fields and 49 shots.
For one field ship on board, maximum 100 shots can take user to avoid situation when he can shot field in smart way to be 100% sure that he win every game.
For one field ship on board, maximum 97 shots can take user to avoid situation when he can shot field in smart way to be 100% sure that he win every game.
For one field ship on board, maximum 92 shots can take user to avoid situation when he can shot field in smart way to be 100% sure that he win every game.
For one field ship on board, maximum 85 shots can take user to avoid situation when he can shot field in smart way to be 100% sure that he win every game.
basic requirements offered to complete the task Hello, Please check attache: problem.png We have a game...
basic requirements offered to complete the
task
Hello,
Please check attache: problem.png
We have a game colled BattleShips.... one user hide only
one ship on board 10x10 = 100 field and second user have X shots to
find where user one hide ship and we want to give them 50% equal
chance to win or lose... and we want to ask you how many shots(how
many field he can check) we need to set up for user to 50% chance...
We are going to play a game of chance. We will roll a die (half of a pair of dice) and if it comes up with one or two spots showing, you win and I will pay you $1.50. If it comes up with three, four, five, or six spots showing, you lose and you will pay me $1.20. So, the probability that you will win is 1/3 and the probability you will lose is 2/3. Your financial benefit will...
Lab #6 Number Guessing Game – Loops and Nested Loops Requirements: Design, develop, test, and submit a program for a Number Guessing game. The program will select a random number between 0 and 100, allow the user to try up to 10 times to guess the number, and tell the user if each guess is too high, too low, or correct. The actual game portion must be a function...you can use more than one function in your program. The amount...
Assignment - Battleship In 1967, Hasbro toys introduced a childrens game named “Battleship”. In the next two assignments you will be creating a one-player version of the game. The game is extremely simple. Each player arranges a fleet of ships in a grid. The grid is hidden from the opponent. Here is an ASCII representation of a 10x10 grid. The ‘X’s represent ships, the ‘~’s represent empty water. There are three ships in the picture: A vertical ship with a...
For your Project, you will develop a simple battleship game. Battleship is a guessing game for two players. It is played on four grids. Two grids (one for each player) are used to mark each players' fleets of ships (including battleships). The locations of the fleet (these first two grids) are concealed from the other player so that they do not know the locations of the opponent’s ships. Players alternate turns by ‘firing torpedoes’ at the other player's ships. The...
For this assignment, your job is to create a simple game called
Opoly.
The objectives of this assignment are to:
Break down a problem into smaller, easier problems.
Write Java methods that call upon other methods to accomplish
tasks.
Use a seed value to generate random a sequence of random
numbers.
Learn the coding practice of writing methods that perform a
specific task.
Opoly works this way: The board is a circular track of variable
length (the user determines the...
Please help as it is very important task for me please write in Python code and divide this into function and write comments for it 1. Ask the player’s name and welcome them to the game using their name. 2. Ask the player what is par for this game (number between 3-5 inclusive) 3. Ask the player what the distance to the hole for this game is (whole number between 195 and 250 inclusive) 4. Show the game menu: (I)nstructions...
Game of Craps C++ #include <iostream> using namespace std; void roll (int *); // using pointer to catch the random variable value of two dicerolls at one time . //these global variable with static variable win use to operate the working of code . //static win, account because two times input given by user to add the diceroll with win number and //account (means balance of user) . static int account = 100; static int win = 0; int bet...
This is the code we have to edit, i know how to do everything
except finding if the x and y are in the space, please explain to
me when you do the code. We are using addshape() api and more.
public class Skeleton { public static void main(String[] args) { //================================ //== Setting up game window ====== SpaceGame myGame; //declaring the object form the class Scanner scan = new Scanner(System.in); System.out.println("What is the window name? "); //window title text...
Please write a Python program to check a tic-tac-toe game and show its winning result in detail. This is an application program of a 3-dimensional list or array. Your complete test run output must look as follows. This test really checks to make sure your program is performing perfectly to check every possible winning situation for X and O. GAME 0 is as follows: OOO OOO OOO O won by row 1 O won by row 2 O won by...