php programming project

Here are descriptions of three classes in an object-oriented program that you will write.

=== Deck ===

- The Deck class represents a standard 52-card deck; Ace high

- Each card is in one of two states -- dealt (D) and not-yet-dealt (ND)

- Cards are ordered. The D and ND cards each have their own order

- When created, all 52 cards are ND, and are in order, by suit

(clubs 2 through A, diamonds 2 through A,

hearts 2 through A, spades 2 through A)


dealOne() -- moves the top card from ND to D and returns the card

print() -- prints non-dealt cards and dealt-cards (in order, as

separate lists)

shuffle() -- Shuffles the deck randomly

Make your own shuffle algorithm. Be prepared

to explain how it works.

=== Card ===

- The Card class represents a single card


print() -- prints the type of card

=== Hand ===

- The Hand class represents a set of cards. From 0 to 52 cards, total

- Cards are always in a definite order


print() -- prints the hand (in order)

addCard(card) -- adds a card to the hand

sortBySuit() -- sorts the cards by suit (see intro for suit order), and then by value (see

intro for value order)

sortByValue() -- sorts by value, then by suit

Write your own custom sort algorithm. Be prepared

to explain how it works.

hasStraight(len, sameSuit) -- returns true if hand

contains a straight of the given length.

If sameSuit is true, counts only straights

with cards in the same suit (flushes);

If sameSuit if not true, any straight is counted


1) Write a program that

- Implements the classes above and creates and shuffles a deck and then

deals two or more 5-card hands from the deck.



- Write all the code yourself including the code to shuffle and

and sort

- Should be a simple command-line utility, not a gui app. If you

generate any graphs, you can use any utility, such as a spreadsheet,

matlab, matplotlib, gnuplot, etc.

- Code must be written in php

- Design is important; get the interfaces right

- Code readability is important

- A simple implementation that gets the job done (and meets other

requirements) is better than a complex implementation.

- Comments not necessary unless there is something that might not be

obvious to a reader. Make a note of any assumptions that may not

be obvious from a method signature.

- Careful error checking not required, but if error checking helps you

develop the code, it's fine to leave it in.

- Don't over-engineer -- this is a limited problem, not the start of a

commercial poker system

- If you write test code to make sure things are working, go ahead and

include that.

This project has to be completed by saturday. Please reply soon or reply to

Skills: Anything Goes, Javascript, PHP, Software Architecture, Website Management

See more: php program project, project php programming, php programming project, write programming code, working with graphs, utility gui, use of algorithm in programming, type of graphs, top programming, start programming, start php programming, standard programming, spreadsheet javascript, spreadsheet in javascript, sort algorithm, shuffle sort algorithm, right signature, programming with matlab, programming object, programming methods, programming method, programming matlab gui, programming in matlab, programming graphs, programming error

About the Employer:
( 0 reviews ) Garland, United States

Project ID: #2539135

10 freelancers are bidding on average $323 for this job


Don't really want to bore you with our profile. If you are interested to see our competitive advantages, please let us know. Now regarding your project, we took a quick look at it and we feel this should be a good More

$450 USD in 20 days
(7 Reviews)

I can complete the project in the next 24 hours so that you will meet the deadline.

$500 USD in 1 day
(12 Reviews)

Hi, I can do this until saturday. Regards

$149 USD in 1 day
(6 Reviews)

Hi, Hope you doing great, We are a US Based Company. We have complete Expertise to handle this project. We have Experience in .net , PHP and Java Technology. We have worked on Poker Games and Casino Software Develo More

$1000 USD in 10 days
(3 Reviews)

I am an experienced PHP developer and can have this project completed for you today (Friday), in time to meet your Saturday deadline.

$150 USD in 1 day
(15 Reviews)

hi, i can do this

$150 USD in 6 days
(4 Reviews)

We are a Web design and development company that focuses on regular communication with our clients and timely delivery for all our projects. Some of the technologies/area that we focus include:

$250 USD in 6 days
(2 Reviews)

Hello, I can do High quality designs with low budgets. See my portfolio website here [url removed, login to view] contact me by my website Sincerely Caterin.

$80 USD in 4 days
(0 Reviews)

Custom software development ([url removed, login to view] Administrator removed this message for containing contact details which breaches our Terms of Service)

$250 USD in 1 day
(0 Reviews)

Hi! Please read the PM.

$60 USD in 5 days
(0 Reviews)

Custom software development ([url removed, login to view] Administrator removed this message for containing contact details which breaches our Terms of Service)

$250 USD in 1 day
(0 Reviews)