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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 7th, 2004, 05:33 PM
juzamjedi juzamjedi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 juzamjedi 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 juzamjedi Send a message via Yahoo to juzamjedi
[Blackjack] Newbie question and two comments

Hey all this is my first time participating in the contest, it looks interesting. I'm mainly wondering if I can use someone else's code as part of my submission. Obviously I'd have to make modifications to make it fit into the contest and I'll keep copyright notices... but is it kosher?

I only wish I had found out about these contests sooner... I would have LOVED to create my own AI for Risk, but hopefully that contest will run again (maybe with a different map?).

Also if you're looking for ideas for future contests, I would suggest a simplified game of "Axis and Allies". You can email me for more details, but it is similar to Risk except:
- Units have different strengths / abilities
- There are always five countries per game
- Each country starts with fixed locations
- It is team-based with 3 allies v. 2 axis

Reply With Quote
  #2  
Old February 8th, 2004, 01:29 AM
eazolan eazolan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 eazolan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Blackjack] RE: Newbie question and two comments


Quote:
Hey all this is my first time participating in the contest, it looks interesting. I'm mainly wondering if I can use someone else's code as part of my submission.


Hey, as long as we're using other people's code, mind if I use yours?

Reply With Quote
  #3  
Old February 8th, 2004, 07:44 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Blackjack] RE: Newbie question and two comments

Well, we can't stop you from taking other's code, but since you're the one competing in this contest, it should be your code.

Reply With Quote
  #4  
Old February 8th, 2004, 08:44 AM
Jeff321 Jeff321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Near Chicago, IL, USA
Posts: 45 Jeff321 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 Jeff321
[Blackjack] RE: Newbie question and two comments

Quote:
Also if you're looking for ideas for future contests


It's kind of soon for that right now I think I don't know if they'd do the same contest twice, but yeah I'd rather do a game where two or more scripts play directly against each other, like checkers, chinese checkers, Stratego, Rummy, Hexxagon or something.

Reply With Quote
  #5  
Old February 8th, 2004, 12:24 PM
Psyn0c Psyn0c is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cape Town, South Africa
Posts: 16 Psyn0c 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 Psyn0c
[Blackjack] RE: Newbie question and two comments

Quote:
I'd rather do a game where two or more scripts play directly against each other, like checkers, chinese checkers, Stratego, Rummy, Hexxagon or something.


I agree. The problem with blackjack is that there is no real clever game winning algorithm that one can use. It is a game of chance; all you do is come up with a playing strategy and apply a whole lot of logical (if-else) statements.

A contest that test one's algorithmic ability would be more interesting, dont you think?

Reply With Quote
  #6  
Old February 8th, 2004, 12:41 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Blackjack] RE: Newbie question and two comments

It would to some, but not to others. Not everyone has a computer science background, and me and Matt thought it was time for something easier

Reply With Quote
  #7  
Old February 8th, 2004, 06:53 PM
FryGuy1013 FryGuy1013 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Antelope, Ca
Posts: 45 FryGuy1013 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to FryGuy1013 Send a message via AIM to FryGuy1013 Send a message via Yahoo to FryGuy1013
[Blackjack] RE: Newbie question and two comments

Not enough computer science background? Something easy? I must be putting too much work into mine

Reply With Quote
  #8  
Old February 8th, 2004, 08:01 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
[Blackjack] RE: Newbie question and two comments

lol yeah i guess they teach discrete mathematics to grade schoolers now

Reply With Quote
  #9  
Old February 9th, 2004, 06:27 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Blackjack] RE: Newbie question and two comments

Well, that's exactly the point. Anyone can write a script that can play a solid game, yet playing perfectly is quite hard, given the time constraints, so it should be interesting to everyone (at least I hope it's like that)

Reply With Quote
  #10  
Old February 9th, 2004, 02:17 PM
juzamjedi juzamjedi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 juzamjedi 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 juzamjedi Send a message via Yahoo to juzamjedi
[Blackjack] RE: Newbie question and two comments

Quote:
Anyone can write a script that can play a solid game, yet playing perfectly is quite hard, given the time constraints


Yeah, that's why I wondered about using someone else's code. There's a statistics package available through PEAR that I think would help out a lot for this project. (Oops, did I just let the cat out of the bag? )

Quote:
Hey, as long as we're using other people's code, mind if I use yours?


You're more than welcome to it when the contest is over :p

Reply With Quote
  #11  
Old February 9th, 2004, 03:13 PM
Jeff321 Jeff321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Near Chicago, IL, USA
Posts: 45 Jeff321 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 Jeff321
[Blackjack] RE: Newbie question and two comments

Quote:
Anyone can write a script that can play a solid game, yet playing perfectly is quite hard, given the time constraints, so it should be interesting to everyone

Unfortunatly the difference between a perfect script and a pretty good one would not be noticeable in this contest without playing lots and lots of games, as there's simply too much luck involved. However, it's still interesting to code (I think), and the good thing about this one is you can put as little or as much time into it as you want... who knows, you might get lucky I'm looking forward to seeing how the top scripts are done, there will surely be a wide variety of ideas and math formulas for this one.

Reply With Quote
  #12  
Old February 9th, 2004, 08:50 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
[Blackjack] RE: Newbie question and two comments

Quote:
Unfortunatly the difference between a perfect script and a pretty good one would not be noticeable in this contest without playing lots and lots of games, as there's simply too much luck involved.


Actually, the scripts will all get identical input. The difference between a perfect script and a pretty good one may be only a few dollars, but that'll still be enough to get you a copy of Zend Studio and a few books ;-)

Reply With Quote
  #13  
Old February 9th, 2004, 09:34 PM
wtfai wtfai is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rochdale, UK
Posts: 14 wtfai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Blackjack] RE: RE: Newbie question and two comments


Quote:
Quote:
Unfortunatly the difference between a perfect script and a pretty good one would not be noticeable in this contest without playing lots and lots of games, as there's simply too much luck involved.


Actually, the scripts will all get identical input. The difference between a perfect script and a pretty good one may be only a few dollars, but that'll still be enough to get you a copy of Zend Studio and a few books ;-)


Not quite true. A perfect script would be one that correctly assessed the probabilities of winning at each point and bet/acted accordingly. However doing the 'wrong' thing can sometimes work. For example hitting on 20 can occasionally win, even though it's stupid. As you get closer to perfection the number of hands needed to differentiate between two scripts grows larger and larger, I haven't done the maths but I suspect that the number of hands needed to differentiate between perfection and just short is going to be something ridiculous.

Reply With Quote
  #14  
Old February 10th, 2004, 12:28 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Blackjack] RE: Newbie question and two comments

Actually it's even worse

If you stand, you'll get different cards on following hands than if you hit, regardless of whether you win or lose the current hand. So, if you knew what the cards are, it would be better in some cases to intentionally hit on 20, even if you knew you're going to lose, because you'd get better cards in, say, next 6 hands...

Still, a better script will IMHO win, regardless of luck. If 160 games are played with average 5 decks, that's around 7500 hands, which should be enough... Maybe I'll take the top 5 scripts to another round of 500 games or something, if time permits...

Reply With Quote
  #15  
Old February 20th, 2004, 03:03 PM
Wiggy Wiggy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 14 Wiggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Blackjack] RE: Newbie question and two comments

And that really is the crux of the matter. You might write the perfect script that works out the precise probabilities and plays mathematically, computer-perfect, wonderous blackjack. You might spend the next week reading up on basic strategy, buying blackjack books and testing your code over 30,000,000,000 hands. And you might lose to a guy who has just written PlayHit() in a loop with stakes set to the maximum bet. And yes, that does happen in real casinos too.

That's why from a computer science/mathematics background, you might not have an edge. In fact, to do some very clever maths, you might actually hit the 60 seconds limit, in which case, you end up a loser. I know last night on my 400 MHz Celeron laptop running FreeBSD (you may laugh, but the battery lasts 6 hours and it cost me 200 quid), I tried one algorithm that hit the 60 second limit.

My tip, having read the rules a few times and thought about this from a game strategy is simple: don't let sloppy coding lose you bets by trying to double when you can't, or somesuch. Write tight, decent code, and hope that it comes right for you. ;-)

P.S. - this is my first post as a registered user. Woo-yay, etc. Oh no, that's the other place...

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Blackjack] Newbie question and two comments


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