Skip to content

Hecker-Chuoi/Sea-Battle

Repository files navigation

Sea Battle

Sea Battle is a game for two players. The game is played on four grids, two for each player. The grids are typically square – usually 10×10 – and the individual squares in the grid are identified by letter and number. On one grid the player arranges ships and records the shots by the opponent. On the other grid the player records their own shots.

The project was done by Nguyễn Văn A, in the course of Object Oriented Programming at ProPTIT.

Tech Stack

Installation

  • Clone the repo
  • Open the project in your IDE
  • Run the project

Demo

Alt text Alt text Alt text Alt text

Usage

  • Project Structure
├── src
│   ├── main
│   │   ├── java
│   │   │   ├── controller
│   │   │   │   ├── GameController.java
│   │   │   │   ├── GameMode.java
│   │   │   │   ├── GameStatus.java
│   │   │   │   ├── Player.java
│   │   │   │   ├── Ship.java
│   │   │   │   ├── ShipType.java
│   │   │   │   └── Square.java
│   │   │   ├── model
│   │   │   │   ├── Board.java
│   │   │   │   ├── Cell.java
│   │   │   │   ├── Game.java
│   │   │   │   ├── GameBoard.java
│   │   │   │   ├── GameCell.java
│   │   │   │   ├── GamePlayer.java
│   │   │   │   ├── GameShip.java
│   │   │   │   ├── GameSquare.java

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages