Завершено

Battle program - 28/10/2017 10:52 EDT

1. Improve the rendering so that each grid square is represented by a box created out of characters.

E.g:

#---#

| |

#---#

2. Improve the rendering so that each ship type is in a different color. Ships should be visible, not hidden from view. Yes, that’s a poor game but we are just using this to test our algorithms and design.

E.g:

#---#

| S |

#---#

3. Improve the rendering so that the grid has horizontal labels (A through J) and vertical labels (1 through 10).

4. Parse the input to get the guess in the form LetterNumber e.g. B7, G10, A1. You will find [url removed, login to view] and [url removed, login to view] to be useful API calls. Invalid input should cause the input to be requested again – it should not be possible to crash your program with bad input.

5. When you have a valid input mark the grid location as used and then render an X in the square to indicate it has been used. The X should be Red if it was a hit on a ship.

E.g:

Miss Hit

#---# #---#

| X | | X |

#---# #---#

Notes:

• You may not modify the char array to store the extra characters to print. The array should only store information about the gameboard and the extra output should be generated by your code.

• Your grid rendering must display the ships. At this stage we are just testing parts of the game so we don’t need them hidden from the user. (And it makes it much harder for one of your users to grade!)

• You do not need to determine end-of-game conditions, validate repeated hits or any gameplay. However, feel free to add any of those things if you feel the urge.

• There are many useful APIs in the Console class. You may render the grid line by line using Write and WriteLine or you may render it using the SetCursorPosition API. You may redraw the entire grid each time or simply replace the sections that have changed.

• You may find it useful to set the size of the console window to something a little larger. There are APIs to do this in the Console class. The example above is just one style of drawing – feel free to experiment with different characters and grid sizes.

Квалификация: Программирование на C#

Показать больше Write an MPI program in which two threads play the game rock, paper, scissors, and the master thread plays the role of a referee, Write a program that handles the basic data structures (i.e. the devices and their queues) in an operating system., Write a C++ program to assign courses (for final exams) to students such that no student will have two finals scheduled at the s, top 10 free video websites to upload and share videos, find a reading passage explain 10 vocabularies write the main idea and to supporting details, url http program pal blogspot com 2012 10 2 html تحميل برنامج مشغل العاب بلاي ستيشن 2 للكمبي, a href http program pal blogspot com 2012 10 7 adobe photoshop 70 me html title تحميل برنامج ف, cat mouse battle program java, program code extract inegers input it print integer line itself , atlantica auto battle program, diablo open battle net java program, battle net item program 112, diablo battle net dupe program, diablo lod dupe program 112 closed battle net

О работодателе:
( 1 отзыв ) Lorain, United States

ID проекта: #15507075

Поручен:

$30 USD за 1 день
(23 отзывов(-а))
4.1

2 фрилансеров(-а) в среднем готовы выполнить эту работу за $23

CuttingEdge89

Hello I have more than 6 years experience in C# programming with (Asp.net,Windows Form and etc.) I can do it before award me if you like my job award me after Job complete Thank you Relevant Skills and Experience C# P Больше

$15 USD за 0 дней(-я)
(3 отзывов(-а))
2.6