Battleship is an open-source iOS game where you can play the classic game of Battleship. This app allows players to connect with a web socket server for real-time gameplay.
- Classic Battleship gameplay
- Real-time multiplayer using WebSocket
- Customizable game settings
Waiting Room | Choose Difficulty | Place Ships | Game Play I |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Game Play II | End Match | Rematch | |
---|---|---|---|
![]() |
![]() |
![]() |
To install and run the Battleship app, follow these steps:
- Xcode 15.4 or later
- iOS 17.2+ (Simulator or physical device)
- WebSocket server for real-time communication: (check here)
git clone https://github.com/mori-ahk/Battleship-iOS.git
cd Battleship-iOS/ShipGame
- Open the Battleship.xcodeproj in Xcode.
- Go to the General tab.
- In the Identity section, set the Bundle Identifier to a unique string (e.g., com.yourname.battleship).
- Set the value to the URL of your WebSocket server here
- Select your target device (Simulator or physical device).
- Press Cmd + R to build and run the app.
- Launch the app on your iOS device.
- Start a new game or join an existing one.