Battleship_advanced

command module
v0.0.0-...-ed902dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 6 Imported by: 0

README

Battleship Advanced

Battleship advanced is an application which which handle Battleship game played on API server.

  • The app allows players to connect to an API server and engage in real-time Battleship battles against opponents.

  • App handle matchmaking, game logic, and data synchronization between players.

  • Players can personalize their game experience by placing the ships.

  • The app includes reading ranking system that tracks player progress and leaderboards to showcase top-performing players.


Installation

go get github.com/Grandeath/Battleship_advanced

Documentation

https://pkg.go.dev/github.com/Grandeath/Battleship_advanced


Preview

Main menu

Main menu

Ships positioning

Position ships

Start of the game

Start of the game

Play

Play the game

Documentation

Overview

This application handle logic and connection to API server. In connection package there is handling of different endpoint connections and create containing struct responses. In application pacakage there is a logic, GUI and Ship positioning of the application. Whole game is the classic battleship game played with other users or bots on the server. Server receive information like playrs nick, shots, ship positioning, person to challenge and give responses like shot result, enemy shots, leaderboard and results of the game.

Directories

Path Synopsis
application implements logic of the game
application implements logic of the game
menu
menu create main menu of the game
menu create main menu of the game
setShips
setShips handle a logic to position ships by the player
setShips handle a logic to position ships by the player
ship
contain algoritm which find all ship nodes
contain algoritm which find all ship nodes
timer
timer create a clock which count turn time
timer create a clock which count turn time
connection package handle connection to rest-api server Warships Online API
connection package handle connection to rest-api server Warships Online API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL