Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 4th, 2002, 03:47 AM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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?

Reply With Quote
  #2  
Old September 4th, 2002, 09:08 AM
Nimco Nimco is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 132 Nimco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to Nimco
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.

Reply With Quote
  #3  
Old September 6th, 2002, 04:59 PM
DevlshOne DevlshOne is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Missouri, USA
Posts: 30 DevlshOne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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. =)


Reply With Quote
  #4  
Old September 6th, 2002, 09:48 PM
asalas asalas is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 asalas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to asalas
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?

Reply With Quote
  #5  
Old September 6th, 2002, 09:54 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: How long is this taking?

cheating at the local casino? :laugh:

Reply With Quote
  #6  
Old September 10th, 2002, 01:03 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: How long is this taking?

Useful only if the cards cease being random.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > How long is this taking?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT