12 Card Games
In the remaining chapters of this book, we’ll build a few demo programs using pygame and pygwidgets
. Each program will present one or more reusable classes and show how they can be used in a sample project.
In Chapter 1, I presented a text-based Higher or Lower card game. In this chapter we’ll create a GUI version of the game, as shown in Figure 12-1.
To quickly recap the game rules: we start with seven cards face down and one card face up. The player guesses whether the next card to be turned over will be higher or lower than the last visible card by pressing Lower or Higher. When the game is over, the user can click New ...
Get Object-Oriented Python 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.