![]() |
| | #1 |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Contest - Traveller's Dilemma Write a function that competes in a game that illustrates the Traveller's Dilemma. *snip* Before I start spouting off stuff about entries, is there any interest in this contest? [edit] There seems to be interest. Scroll down for the details.
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! Last edited by pianorain; 06-14-2007 at 08:36 PM. Reason: Consolidating rules so that things are less ambigious. |
| pianorain is offline | |
| | #2 |
| Registered User Join Date: Apr 2006 Location: United States
Posts: 3,201
| I'd like to play, but someone is probably going to enter with Code: int f() { return 2; }
Please go into detail about how the contest works. |
| whiteflags is offline | |
| | #3 |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,629
| Here's my first entry. Code: int dwks_1(void) {
return (rand() % 99) + 2;
}
Code: int dwks_2(void) {
return 100;
}
![]() Code: int dwks_3(void) {
return 2;
}
Well, it actually sounds a bit simple -- why not pick a tougher problem? And you'll probably need some more rules. How long is the contest open for? When will the "tournament" be run? (I'm assuming that you'll run it.) What language(s) can the entries be written in? What sort of format will the entries be required to have? Do they just return an int and take no parameters? [edit] citizen beat me to it. [/edit]
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, etc. New project: nort |
| dwks is offline | |
| | #4 | |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Quote:
Code: int f() { return 2; }
Code: int f() { return 100; }
Code: int f() { return 99; }
I haven't quite finished with the details, but my intent was to require submissions in C++ so that the programmer could inherit from a base class. It makes it easier to integrate all the entries into the competition program. Have a better idea?
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! | |
| pianorain is offline | |
| | #5 |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Rules Traveller's Dilemma Contest Schedule / Deadline Start Date: June 15th, 2007 End Date: June 30th, 2007 Submissions If you choose to enter, please reply stating that you have entered the contest. Before midnight on the Contest deadline you must complete a submission that meets the stated requirements and send it to the submission officer via email or private message. E-mail is preferred. The contest website can be found at http://fluff.thejefffiles.com/coding/travellersdilemma. E-mail: pianorain@bellsouth.net PM: pianorain Introduction Write a function that competes in a game that illustrates the Traveller's Dilemma. Here are the rules:
Details Entries will be accepted in C++. Write a class that inherits from the following abstract class: Code: class TravellersDilemma
{
public:
virtual int ChooseNumber(int previousEarning, int lowerBound,
int upperBound, int bonus) = 0;
virtual ~TravellersDilemma(){};
};
Contest Rules Below are the current contest rules and regulations. I. Official Rules I.I You may submit up to four entries, and they must have been submitted between the contest start and end dates. The programmer must designate one of their entries to be the primary entry. I.II Entries submitted should be:
II. Code Judging II.I Submitted code will be judged solely on the number of points earned during the game. Code that does not compile will be disqualified. Code that generates invalid numbers in ChooseNumber during any part of a simulation will be disqualified from that simulation. II.II In each simulation, five games will be run with different lower bounds, upper bounds, and bonuses, one of which will be the traditional Traveller's Dilemma (lower bound=2, upper bound=100, bonus=2). The winner is the writer of the function that accumulates the most total points over all five games. II.III The following simulations will be run:
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! Last edited by pianorain; 06-15-2007 at 08:01 AM. Reason: Multiple entries allowed. Multiple simulations added; clarified about multiple entries. |
| pianorain is offline | |
| | #6 | |
| Frequently Quite Prolix Join Date: Apr 2005 Location: Canada
Posts: 7,629
| I think you should make the end date June 31st. ![]() Quote:
Okay, could be interesting. Can we submit more than one entry?
__________________ dwk Seek and ye shall find. quaere et invenies. "Simplicity does not precede complexity, but follows it." -- Alan Perlis "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra "The only real mistake is the one from which we learn nothing." -- John Powell Other boards: DaniWeb, TPS Unofficial Wiki FAQ: cpwiki.sf.net My website: http://dwks.theprogrammingsite.com/ Projects: codeform, xuni, atlantis, etc. New project: nort | |
| dwks is offline | |
| | #7 |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Each game consists of enough rounds for your function to compete against each other function. Each round consists of ten turns. Five games will be played with varying upper bounds, lower bounds, and bonuses. So, assuming four entries, your function will play in five games, each with three rounds that are ten turns long.Multiple entries poses an interesting twist: the possibility of collusion. You can submit up to four entries, but make sure to designate one of them to be your primary entry. In the main competition, only the primary entry from each programmer will be allowed. If there is enough interest, I'll run a second simulation that includes all the entries.
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! Last edited by pianorain; 06-14-2007 at 03:01 PM. |
| pianorain is offline | |
| | #8 | |
| Deathray Engineer Join Date: Mar 2007
Posts: 3,211
| Hmm, I think I might have to try this.... ![]() Quote:
To clarify: Our function will be tried 10 times with each function and that constitues a round. Our function will be put through as many rounds as there are "enemy functions", and that constitutes a game. Our function will be put through 5 games in total. Is this correct? Are those numbers set for sure or are they subject to change?
__________________ Last edited by MacGyver; 06-14-2007 at 04:24 PM. | |
| MacGyver is offline | |
| | #9 | |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Quote:
Those numbers are "the numbers" unless someone can offer a compelling reason to change them. 10 times against a competitor in a round should be enough to allow for a myriad of strategies, and 5 games should provide a good cross sample of the possible interesting games one can derive from varying the parameters of the Traveller's Dilemma.
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! | |
| pianorain is offline | |
| | #10 |
| Registered User Join Date: Jan 2005
Posts: 7,137
| Consider randomizing the number of turns in a round. There are different (and less fun IMO) strategies if you know how many rounds there will be. Oh, and it looks like you edited in the rules above, in case others missed it. >> previousEarning will be the amount of points earned in the last turn or NEW_ROUND if starting a new turn. That turn should be "round", right? Also, can you provide the opponent's proposal from the previous round as well, or is that part of the game to not know? |
| Daved is offline | |
| | #11 | |||
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Quote:
Quote:
Quote:
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! | |||
| pianorain is offline | |
| | #12 |
| Registered User Join Date: Jan 2005
Posts: 7,137
| I agree that single shot rounds wouldn't be interesting unless you did it on purpose. I'm not even sure that two turn rounds would be all that interesting. My preference would be to have the bounds be higher (5-15?, 10-100?), and randomize each round rather than each game. I also think it would be best if you were to have a random turn simulation to have the number of turns not be known to the contestants' code, even during the competition. So at one point the game just stops. |
| Daved is offline | |
| | #13 | |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Quote:
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! | |
| pianorain is offline | |
| | #14 |
| Registered User Join Date: Jan 2005
Posts: 7,137
| You could always change the interface if you wanted, but I'm obviously fine with that answer. When you have the code setup to run the simulations, could you post that so we can test on it? You don't necessarily have to publish the actual data you will be passing if you'd like it to remain secret. If I have time I think I'll write one that assumes a random number of turns, even though that's not the official rule. If that causes it to lose so be it. |
| Daved is offline | |
| | #15 |
| Anti-Poster Join Date: Feb 2002
Posts: 1,212
| Aye, I plan to once I finish this next version of it.
__________________ Rule #1: Every rule has exceptions Traveller's Dilemma Contest Site - Results posted! |
| pianorain is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expression Evaluator Contest | Stack Overflow | Contests Board | 20 | 03-29-2005 10:34 AM |
| Obfuscated Code Contest | Stack Overflow | Contests Board | 51 | 01-21-2005 04:17 PM |
| WANTED: Contest Master | kermi3 | A Brief History of Cprogramming.com | 15 | 01-23-2003 10:15 PM |