Summary

This chapter provides an end-to-end definition and implementation of a small blackjack game system. Because of the separation of concerns between the display, game play, and card framework, we can easily support multiple developers and have a relatively high degree of parallel development (especially for a toy example). In addition, it should become apparent to the reader that this system is relatively easy to test and to extend. Because multiple iterations of developing this system are possible, we can keep our design cycles in short periods of time, which more easily keeps our projects on target.

Get Joy of Patterns: Using Patterns for Enterprise Development, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.