Skip to content

mori-ahk/Battleship-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawing

Battleship

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.

Features

  • Classic Battleship gameplay
  • Real-time multiplayer using WebSocket
  • Customizable game settings

Screenshots

Waiting Room Choose Difficulty Place Ships Game Play I
Game Play II End Match Rematch

Installation

To install and run the Battleship app, follow these steps:

Prerequisites

  • Xcode 15.4 or later
  • iOS 17.2+ (Simulator or physical device)
  • WebSocket server for real-time communication: (check here)

Step 1: Clone the Repository

git clone https://github.com/mori-ahk/Battleship-iOS.git 
cd Battleship-iOS/ShipGame

Step 2: Set the Bundle Identifier

  1. Open the Battleship.xcodeproj in Xcode.
  2. Go to the General tab.
  3. In the Identity section, set the Bundle Identifier to a unique string (e.g., com.yourname.battleship).

Step 3: Set the WebSocket Server URL

  1. Set the value to the URL of your WebSocket server here

Step 4: Build and Run

  1. Select your target device (Simulator or physical device).
  2. Press Cmd + R to build and run the app.

Usage

  1. Launch the app on your iOS device.
  2. Start a new game or join an existing one.

About

a fun game to play with friends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages