Version: 0.0.1.0
Developed by: Steve Sparks

Overview

The purpose of this API is to act as a demo project that members of my team use to practice various development and DevOps Activities. It is much more fun to get to the end of the coding project or, even worse, a deployment and CICD build-out, and it has something fun to do at the end.

This API is also very usable for the foundation of your own BlackJack game. My goal is an original game following well-accepted rules. I have not introduced the ability to split a hand (yet), but the gameplay and the API have many fun features.

You can play the game using a client I have implemented or you can implment your own client. Scroll down to see the game commands and the game rules

Implementing a Client for the API

You can post an empty game move to the /game/play/ endpoint, and the API will start a new game and return the new game results. The client that calls the /game/play/{id} endpoint will continue to get the game results for the unique game id for each move posted. The API caches the game for 8 hours and lets you play until the cache expires or you rest the game. The API can be used to play on any platform calling the API or you can use the srrvice in the source application to create a standalone game.


House Rules:

I have implemented a single-deck version of Blackjack. When the game begins, the cards are turned round-robin style and removed from the deck. Then, the deck is shuffled when the last card is used, and the play continues.

Game Commands: