06.09.2021 Views

How to Think Like a Computer Scientist - Learning with Python, 2008a

How to Think Like a Computer Scientist - Learning with Python, 2008a

How to Think Like a Computer Scientist - Learning with Python, 2008a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

178 Inheritance<br />

---------- Cards have been dealt<br />

Hand Allen contains<br />

King of Hearts<br />

Jack of Clubs<br />

Queen of Spades<br />

King of Spades<br />

10 of Diamonds<br />

Hand Jeff contains<br />

Queen of Hearts<br />

Jack of Spades<br />

Jack of Hearts<br />

King of Diamonds<br />

Queen of Diamonds<br />

Hand Chris contains<br />

Jack of Diamonds<br />

King of Clubs<br />

10 of Spades<br />

10 of Hearts<br />

10 of Clubs<br />

Hand Jeff: Queen of Hearts matches Queen of Diamonds<br />

Hand Chris: 10 of Spades matches 10 of Clubs<br />

---------- Matches discarded, play begins<br />

Hand Allen contains<br />

King of Hearts<br />

Jack of Clubs<br />

Queen of Spades<br />

King of Spades<br />

10 of Diamonds<br />

Hand Jeff contains<br />

Jack of Spades<br />

Jack of Hearts<br />

King of Diamonds<br />

Hand Chris contains<br />

Jack of Diamonds<br />

King of Clubs<br />

10 of Hearts

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!