awarellka.blogg.se

How to make a computer program 2016
How to make a computer program 2016











27 Performing Run-length Encoding on the 'Board', possibly useful when saving the game.

how to make a computer program 2016

  • 26 If a miss, scan one element near the miss to see if a ship is present.
  • 25 Allow user to enter two-digit co-ordinates, so 35 instead of 3 then 5.
  • 22 Allow user to enter their own ships on the board.
  • 21 Don't subtract a move when a coordinate has been re-entered.
  • simultaneously enter coordinates for three shots and then make the move)
  • 20 Allow the player to fire a salvo (i.e.
  • 18 Clear the environment after every turn has taken place.
  • 16 Bonus special missile when you sink a ship (such as one with a larger range).
  • 15 Add a message for destroying warships (can be coded in a similar way to CheckWin (Board)).
  • 14 Add a multiplayer option (another person or the computer).
  • 12 Add multiple ships of the same type in one game.
  • 11 Crashes if no input on column or row: (possibly use a try catch statement).
  • 10 No score is given (tell user how many moves they took to win).
  • 9 Limit the number of moves for the player to use.
  • how to make a computer program 2016

    7 Game crashes at the main menu if a string is entered or if the menu option does not exist.6 How could the game be changed to add another ship?.5 How would the game be extended to use a bigger board?.4 Save Game File - The player is able to save an unfinished game.3 No error checking for erroneous inputs - if a string is entered the program crashes!.2 Add a feature which tells the player the type of warship they hit.1 Checking to see if you're off the board - If the player enters over 9 or under 0 it will crash the game.













    How to make a computer program 2016