๐ข 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 |
| 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! ๐