Skip to content

bjorndaniel/cloudbattleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleships

A serverless implementation of the classic Battleships game

Insipration and game logic from ExceptionNotFound

The game consists of the following projects:

Battleships.Blazor.UI

Web client for the application written using Blazor WASM

Battleships.Backend

A project consisting off 4 Azure functions used to communicate with the clients and the Cosmos DB The functions are:

  • InitGame - Called by a client to join a game
  • Messages - Used to send messages between the clients.
  • Negotiate - Called by the clients to get the Azure SignalR connection informations (stored in an application setting AzureSignalRConnectionString)
  • Fire - Used by players to send a info about a shot the the server

Check local.settings.json for the required keys.
It has default values to use a local Cosmos DB and the functions will run on localhost:7071

Battleships.Shared

The gamelogic from ExceptionNotFound
Also contains shared helper functions and the game model

Links and references

The future

  • Add Xamarin Forms clients
  • Add some animations
  • Better error handling
  • Add a timed function to remove completed games
  • Add an invite function to be able to invite players via email

About

A serverless implementation of the classic Battleships game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published