GithubHelp home page GithubHelp logo

t1git / seabattle Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 150 KB

๐Ÿ•น๐Ÿšข Console realisation of the BattleShip

License: GNU General Public License v3.0

HTML 0.12% Java 99.88%
multiplayer player game battleship seabattle console-game

seabattle's Introduction


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

seabattle's People

Contributors

t1git avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ddanbi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.