|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How long is this taking?
Gah, Junior year is no fun!
I doubt I have enough time to work on this... I estimate about 2 hours to do a basic script, a dumb script that parses, discards lowest cards not in pairs. Anyone with some leet search routine? :O How many hours have you all spent so far on this contest? |
|
#2
|
|||
|
|||
|
RE: How long is this taking?
I've so far written a script to count the points in the hand and display what is in the hand (e.g. Full House). This took about 2hours - not helped by the fact I have never played Poker before
The next thing I'm going to do is to sort out which cards could be discarded without losing any points. Then I shall make it look at the cards it has to see if there are any which could possibly get some points, e.g. if the hand it is dealt includes a straight except for one card, then it should discard that single card in the hope of getting a straight. |
|
#3
|
|||
|
|||
|
RE: How long is this taking?
I'm only about four months into PHP and this script took me about 3 hours to write. Mine checks for any possible combination of hands and determines a risk factor for pulling the next card. I had some neat gfx in there but Matt likes these plain-jane scripts lately. =)
|
|
#4
|
|||
|
|||
|
RE: How long is this taking?
It took me about 4 hours (of inspiration) to write a script that checks for pairs, two pairs, three of a kind, four of a kind and full house. Also it can decide which cards to swap out. Now I just have to check for stright, flush, and stright flush, and to save the score.
There are big possible uses for this little script after finished, don't you think? |
|
#5
|
|||
|
|||
|
RE: How long is this taking?
cheating at the local casino? :laugh:
|
|
#6
|
|||
|
|||
|
RE: How long is this taking?
Useful only if the cards cease being random.
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > How long is this taking? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|