Battleship Game

Client

Open Source

Duration

3 days

Category

Java

Client

Open Source

Duration

3 days

Category

Java

Client

Open Source

Duration

3 days

Category

Java

๐Ÿšข Battleship Arcade โ€“ Java ๐ŸŽฎ

Welcome to Battleship Arcade, a stylish and colorful rendition of the classic naval combat game built entirely in Java Swing! Get ready to place your fleet and engage in strategic warfare against the AI in a grid-based showdown. โš“๐Ÿ’ฅ

๐Ÿ•น๏ธ Gameplay

The objective is simple: sink all 5 enemy ships before the computer sinks yours.

๐Ÿ›ณ๏ธ Ship Details

  • You and the computer each have 5 ships.

  • Each ship occupies 1 single cell on a 10ร—10 grid.

  • You must manually place your ships before the game begins.

๐Ÿงฉ Symbols Guide

Symbol

Meaning

โ– 

Your ship

x

Hit (either yours or enemy's)

โ˜ 

Sunk ship

โ‰ˆ

Missed shot

๐ŸŽจ Interface

  • ๐Ÿ›ก๏ธ Left Grid: Your ships.

  • ๐ŸŽฏ Right Grid: Where you attack enemy positions.

  • Colorful buttons and Unicode emojis enhance readability and fun!

๐Ÿง  How to Play

1๏ธโƒฃ Place Your Ships:

Click 5 times on your grid (left side) to place your ships (โ– ). You canโ€™t overlap.

2๏ธโƒฃ Start the Battle:

Once all ships are placed, the AI places its own ships randomly.

Take Turns:

Click on the enemy grid (right side) to fire. The computer will respond with its move after yours.

Win or Lose:

๐Ÿ† Win: Sink all 5 enemy ships first.

๐Ÿ’€ Lose: The computer sinks all your ships first.

๐Ÿงผ Reset / Exit

Once the game ends (win or lose), a message is shown and the app closes automatically.

๐Ÿ’ก Features

  • ๐ŸŽจ Clean, emoji-rich GUI with color themes

  • ๐Ÿค– Simple AI logic for ship placement and random firing

  • ๐ŸŽฏ Visual feedback for each hit, miss, or sunken ship

  • ๐Ÿงช Modular code structure for easy maintenance and expansion

๐Ÿ”„ Future Enhancements & Ideas

Here are some exciting features planned to take the game to the next level:

  • ๐Ÿšข Multi-cell Ships: Introduce ships spanning multiple cells (e.g., length 2 to 4) for added strategic depth.

  • ๐ŸŽฎ Multiplayer Mode: Enable hotseat or LAN multiplayer battles to challenge friends.

  • ๐Ÿค– AI Difficulty Levels: Implement adjustable difficulty settings to offer beginners and veterans a suitable challenge.

  • ๐Ÿ”Š Sound Effects & Animations: Add immersive audio cues and smooth animations for hits, misses, and ship sinking.

  • ๐ŸŒ Online Leaderboards: Track player scores and rankings globally.

  • ๐Ÿ–ฅ๏ธ Improved UI/UX: Enhance interface responsiveness and accessibility options.

  • ๐Ÿ’พ Save & Load Games: Allow players to save progress and resume battles later.

๐Ÿ“ License

This project is open-source and free to use. Enjoy! ๐Ÿš€

Enjoy sinking ships! ๐ŸŒŠ๐Ÿ”ฅ

Client

Open Source

Duration

3 days

Category

Java

ยฉ Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in

ยฉ Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in

ยฉ Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in