Skip to content

ronysdev/SnakesAndLadders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Snakes and Ladders game

Swagger available at - [domain]/swagger/index.html


All services/providers are registered in the .NET Core IoC container

Players data is saved in a concurrent dictionary,
could alternatively implement using DistCache with DI (production grade),
Since Memory/DistributedCache does not allow key enumartion - chose ConcurrentDictionary for simplicity.

Main Objects - 
ConfigModel - defines game policy (snakes and ladders), using levelConfig.json.
Dice - returns random dice throw - registered as transient for thread safety
Level - defines players movement and validity using ConfigModel
SnakesAndLadders - Facade for our API, responsible for adding user / acquiring his status.

When running locally please make sure you have levelConfig.json in your current domain base directory.

Unit Testing with xUnit




About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages