Skip to content

🕹🚢 Console realisation of the BattleShip

License

Notifications You must be signed in to change notification settings

T1GIT/SeaBattle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Console Battleship with multiplayer

Description

It is console realisation of the game Battle Ship in Java

Rooms system

Game going through players in the room. The room may contains 2 or more players. If the room includes more then 2 players than game going through cyclic. Example: We have room with 3 players: A, B, C. Games looks so:

  1. A attacks B
  2. B attacks C
  3. C attacks A
  4. ... and etc in the same way

Playing

When one of them won't have alive boats he'll lose and skipped. Player before them will attack next player. Game continues while all players almost one will lose.

Player types

  • PC (Automatically generate data. Has some logic)
  • UI (Will request data from the user)

You can choose every player whom it can be at the moment of initialisation.

Commands

In any moment of the constellations or game process you can type plying as UI r or random

r - for random step
random - for repeated random steps

Other

chat <some text> - sending message to all players in the room

Multiplayer

It has possibility of playing via the internet. And you can secure your room with password. In web mode you can chat with all competitors. Just type chat <message> when coordinates for attack or was requested, then all participants will see it. In any mode you can make your computer play for you, for that you should call yourself "PC".

Getting Started

  1. Download project
  2. Install java version 14 or newer
  3. Run SeaBattle.java from the IntelliJ IDE

Built With

Author

Student of the Financial University

Group: PI19-5

License

This project is licensed under the v3.0 License - see the LICENSE file for details

Version 1.0

31.10.2020