Pages: 2
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
this proxy should keep track the time the game sta

This proxy should keep track the time the game starts

Week 8 Assignment ­ Design Patterns Overview

This week, we reviewed Design Patterns and learned how they can make your OOP programs more structured and more easily readable by fellow programmers. Last week’s assignment you designed a program to implement the game of Pig. This week, we will expand on that game by using a few patterns that we have learned, specifically the Proxy and Factory patterns.

3. Before submitting the assignment, review the “Functional Requirements” section and make sure you hit all the points. This will not guarantee a perfect score, however.

Extending our Design

In order for the computer to make decisions in this game, the computer must have some kind of strategy.

For this assignment, have the computer use the following strategy: given the computer's score x, the computer will hold at the lesser of 25 and 100 ­ x; otherwise, the computer will roll. This strategy should be implemented in a new class, called ComputerPlayer, that inherits from the Player base class.

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File

Uploaded by : Reyansh Tank

PageId: ELI212731B