Skip to content

Application for simulating playing Battleships game over the network

Notifications You must be signed in to change notification settings

patrykwierzbilo/BattleshipsGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Battleships game

Application for simulating playing Battleships game over network. Application communicates via network with opponent by sending each other commands and marking effects on map. Task done during Java course in college.

Parameters to run

  • -mode [server|client] - mode of operation
  • -port N - port intended for communication
  • -map map-file - path to the file containing the map with the arrangement of ships

Map

Example:

~~@~~.~~~.
@..~.~.@.~
#.~#..~.~.
..##..~..~
..~.~.@@..
.#@~..~...
.~.~.~.~.@
~.##.~.#~~
.##~..~~~~
..~.~.~~~.

Legend:

  • # - ship
  • . - water
  • ~ - opponent's missed shots
  • @ - opponent's shots on target
  • ? - unknown field

About

Application for simulating playing Battleships game over the network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages