Skip to content

ysahingoz21/battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Game – Android (Kotlin)

A turn-based Battleship game developed for Android devices, where a human player competes against a computer opponent on an 8x8 grid. The project focuses on clean separation between game logic and UI, state persistence, and interactive gameplay mechanics.

Features

  • Turn-based Battleship gameplay on an 8x8 grid
  • Human vs computer opponent
  • Custom ship placement with horizontal and vertical orientation
  • Randomized ship placement and firing logic for the computer
  • Real-time hit/miss feedback using in-app notifications
  • Win/loss tracking across multiple games
  • Persistent UI state handling across configuration changes

Technical Highlights

  • Implemented in Kotlin
  • XML-based layouts (non-Compose)
  • Clear separation of game logic and UI components
  • Proper state restoration using onSaveInstanceState
  • Modular board and game state management

Technologies

  • Kotlin
  • Android SDK (API 29+)
  • Android Studio
  • XML Layouts
  • Git & GitHub

About

A turn-based Battleship game for Android built with Kotlin, featuring custom game logic, ship placement mechanics, and persistent win tracking.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages