codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Domain Modeling by Example

Ellis Andrews
codeburst
Published in
6 min readMar 4, 2020

Example: Blackjack

Step 1: Entities

Step 2: Entity Relationships

Step 3: Entity Relationship Map

Step 4: Models Proof of Concept

Model Case 1: Create a Shoe containing a single Deck of Cards

Model: Shoe
Model: Deck
Model: Card
Execution

Model Case 2: Gamblers and Dealers are both Players

Model: Player (superclass)
Model: Gambler (subclass)
Model: Dealer (subclass)
Execution

Step 5: Build

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Ellis Andrews

Full stack developer working to demystify code through example. Mostly Python and React.

Responses (1)

Write a response

Gambling gives players not only a chance to win, but also a unique sense of excitement. Each spin, bet or deal of cards fulfills the game with adrenaline. My friend, recommended me basant club login. In any case, it is important to stay calm and use the break, because even a small mistake can lead to defeat.

--