Anulat

Write some Software

Need to create Battleship Console application. There are some classes already per-written.

Done Task

Y Create class to represent coordinates on the board

Y Create class for ships of different lengths with a ShipType enum

Y Create class that given a ship type will return a properly sized ship

Y Create class to represent the board

Y Keep track of the shot history for the board

Y Each shot fired will either be invalid, duplicate, hit, miss, hit and sunk, or victory if all ships are sunk. Create an enum to represent this.

Y Create logic to place a ship on the board. Players will choose a coordinate, ship type, and direction (up/down/left/right). Ships may not overlap or run off the bounds of the board grid.

NOT Done Tasks:

-Create a start menu for the game, prompt for each player's name

-Create an object that translates a number to its corresponding letter for the X coordinate (A=1, B=2, etc)

-Create a game workflow object that will contain two boards, keep track of which player's turn it is, and process each player's turn.

-The game should set up the boards.

-Each player should be prompted to place their ships on their board by giving a starting coordinate and a direction. Clear the screen when a player is finished so the other player can't cheat!

-A player's turn is as follows:

1. Show a grid with marks from the opponent board's shot history. Place a yellow M in a coordinate if a shot has been fired and missed at that location and a red H if a shot has been fired that has been hit.

2. Prompt the user for a coordinate entry (ex: B10)

3. Validate that the entry is valid, if so, create a coordinate object, convert the letter to a number, and call the opponent board's FireShot() method

4. Retrieve the response from the fire shot method and display an appropriate message to the user. Possible results are:

a. Invalid coordinate - repeat turn

b. Duplicate shot - repeat turn

c. Hit - "You hit something!" - Next Player's turn

d. Hit and Sunk - "You sank your opponent's {ship name}" - Next Player's turn

e. Miss - "Your projectile splashes into the ocean, you missed!" - Next Player's turn

f. Victory - "You have sunk all your opponent's ships, you win!" - End Game

5. Remember to prompt to continue and clear the screen to keep things clean

N When the game ends, prompt the players if they would like to play again. If so, go back to setting up the boards. If not, quit the program.

Aptitudini: Programare C#

Vezi mai multe: website template convert html, convert website template png html, convert blogger template website template, convert current working css website template joomla, convert website template oscommerce, convert photoshop website template dreamweaver, convert website template blogger, software write mq4, software write chip epson, useful software write book, software write web specs, convert normal website template oscommerce, website baker convert design template, free software write user guide, software write edid, free software write company profile, convert psd website template css, software write websites idea, software write book images, software write books, psd template convert website, software write protection, free software write book, software write book, joomla convert existing website template

Despre angajator:
( 1 părere ) Columbus, United States

ID Proiect: #11960507

3 freelanceri licitează în medie 23$ pentru acest proiect

victor980410

Hello, I am experienced c# programmer.

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(12 recenzii)
2.9
%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(1 părere)
1.8
seelamkomalkumar

I have done these kind of projects before. Can help u deliver on time

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(0 recenzii)
0.0