Skip to content

Sarkulum/Battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Description

A fairly simplistic Battleships game. The bot pics all positions (ships and where to fire) at random. The player can input there name and age which currently is not used. They can input coordinate separated by "," to shot. While placing the ships they can also decide the orientation by adding ",V" or ",H" after the coordinates.

To-Do

  • Add some more text to some of the println.

The following issues are currently present in the code:

  • Some try catch might be needed to avoid game crashes.
  • Hit or miss messages are in the wrong function. They should be in PlayerControler.

Note!!!

X and Y need to be swapped inside the code for player so that X is first int and y is second. This is usually not the case. Might be because of String conversion.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages