CS102_CardGame

# CS102_CardGame - Java Coding 8 David Davenport Computer Eng...

This preview shows pages 1–6. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Java Coding 8 David Davenport Computer Eng. Dept., Bilkent University Ankara - Turkey. email: [email protected] Object-Oriented Design Example- The Card Game - IMPORTANT… Students… This presentation is designed to be used in class as part of a guided discovery sequence. It is not self-explanatory! Please use it only for revision purposes after having taken the class. Simply flicking through the slides will teach you nothing. You must be actively thinking, doing and questioning to learn! Instructors… You are free to use this presentation in your classes and to make any modifications to it that you wish. All I ask is an email saying where and when it is/was used. I would also appreciate any suggestions you may have for improving it. thank you, David . Card Games As an example of Object Oriented Design The Problem… Design & implement a program to play a simple game of cards between four players. To begin, a full pack of cards are shuffled and dealt face-down to the players. The game then proceeds in rounds. For each round, players play the top card from their hand and add it face-up to a pile on the table in front of them. The player who plays the highest value card is the winner of the round and their score is incremented by one. When all of the cards have been played the player with the highest score is declared the winner of the game. The Problem… Design & implement a program to play a simple game of cards between four players . To begin, a full pack of cards are shuffled and dealt face-down to the players. The game then proceeds in rounds. For players....
View Full Document

{[ snackBarMessage ]}

### Page1 / 19

CS102_CardGame - Java Coding 8 David Davenport Computer Eng...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online