Introduction to Object Oriented Programming, 3rd Ed
Chapter 9
The Solitaire Game
Outline
- The Solitaire Game
- The class PlayingCard
- Some Features to Note
- Separation of Data and View
- The CardView is Eventually Implemented
- The Game -- Klondike
- Card Piles
- The Class CardPile
- Some Features to Note
- Power of Inheritance
- Suit Piles
- Deck Pile
- Discard Pile
- Tableau Piles
- The Polymorphic Game
- Some Features to Note
- The Main Program
- Chapter summary
Source
Other Material
- A printer friendly copy of all slides
- A C++ version of the program
as it appeared in An Introduction to
Object-Oriented Programming (1st edition, Addison-Wesley, 1991).
- A rewriting of the application
from my book Understanding Object-Oriented Programming with Java
(Addison-Wesley, 1998).
- Yet another rewriting in C++, from
my book C++ for Java Programmers, published by Addison-Wesley, 1999.
Intro OOP, Chapter 9, Outline