Thread: Sign up: The Card Game Contest

  1. #16
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    First off, there needs be no rules for the features to be included other thatn the basic requirements to play the game. The developer can then add anything he/she wants to make theirs stand out. While "any card game" is a broad range of different games I think it makes no difference, no matter what game is selected there will always be some jerk out there who has to cheat and download someone elses code and try to pass it off as his/her own. But I can assure you that as a judge I will compare any and all entries against code found readily available on the net.
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  2. #17
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    ok. i'll lengthen the contest to 2 weeks, ending on the saturday midnight 2 weeks from now. (no idea what day that is... i'll check it soon)

    Whoever makes these contests needs to slow down on the caffiene
    i'm not the one posting 4 messages in a 15 minute period...

    if you want the contest specialized, suggest a game. better yet, put up a poll and let people vote for it.

    a functional contest sounds intriguing... but how would it be implemented?

    i am not worried over people posting copied source code. from reading the code i doubt anyone has done it yet.

  3. #18
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Okay, sign me up, but I'm not sure which card game I'll make. If you are more specific abour the requirements, than it will reduce the ability to grab code off the internet.

  4. #19
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    lemme suggest a possible game... poker? any version would do. it would also let people try their hands at the multiplayer aspect

  5. #20
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    What are the rules of poker?

  6. #21
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    how about... texas hold 'em

    here are its rules:
    http://www.conjelco.com/faq/poker.html

  7. #22
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Well ithough of doing a simple card game called memory.. The player has to keep track of the position of cards opened... Well when he open 2 cards with the same value say Hearts A and Clubs A.. he takes it... well sometin like this..


    Well i decided to do a poker game..(i dint know what poker was..) and after going through some of the poker games.. i still could not undestand it properly..(I never played poker..) then after figuring it out.. It seems like it will take me a month to complete it.. since i am hardly free for more than 2 hrs a day... So it looks like i will be out of the contest... But in case the card game criteria changes...(Where the programmer chooses the card game he wants to do..) i am in.... But in case not i will surely contest in the next contest and try my luck...

    Bye
    Vasanth
    Last edited by vasanth; 09-08-2002 at 10:33 AM.

  8. #23
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    alright. so...

    the programmer chooses the game he/she wants (card game, has to be fairly well known, not 52 pickup).

    vasanth, i don't know how to implement your idea of specializing the contest through functions only... can you clarify what you mean?

    btw, for all contestants, the contest is on hold until we figure out a definite plan.

  9. #24
    vasanthm
    Guest
    Well i dint mean an entire program inside a function.. What i meant was a specialized problem that can be anything.. like say the function should evaluate wheather an given equation can be formed or not... And you can even have contests where for example the function should take a big word as argument and should write all possible words that can be formed out of it in a file and so on.....(similar to dictionary..)...

    The contest can even be like say complex drawings.. WHere the user can use any graphics library.. The function should take a definite amount of numbers as argument and draw the complex drawing..(Can be fixed as 3d mesh etc etc...)

    The contest can also be say take some numbers representing a maze or something and should return the shortest route possible from position 1 to b as the asnwer. The argements sent here can be a char array like

    a - d
    d - g
    d -h
    h - a
    h - f
    g - f
    f - b

    here the function has to compute the shortest route from a to b...

    So many of these stuff can be done.. Even contests where the function find wheather a given number is prime or not..(here the prime number can be say a 10 digit number..)



    But if you have a poll to decide this by only taking votes from the people who have contested so far.. people who dont contest in the contest awill not be intrested in these kinds of contests since it is no fun to them.. they prefer to see games like nibles, pokers etc... They dont care about copying source and stuff... but the contestants will really know what to choose.....

    The reason i am insisting specialized programs and to only use functions is to eliminate the indeference in interface,, here only the program logic and how effective the algorithm is counts and not the silly graphics or user interface.. As a programmer it is very important that the programmer is good at algorithms, logics and the working of the program effectively... So these kind of contests will really test the programmer skills..(the contests i have proposed can be made harder..) And it is really challenging unlike other programs where it is already made and it quite easy to get the source.. Even if the programmer dosent copy the source the programmer can get the logic from already done pograms which i consider IT TO BE CHEATING.. wRITING A PROGRAM IN NO BIG DEAL BUT ARRIVING AT a solution is... take for example the nibbles game... Though i did not copy the game i got the logic from some sites which explain how to construct the game.. So this is some waht similar to cheating..() Here my solution finding skills were not used but just my programming syntax skill...


    So think about it..


    bye
    vasanth

  10. #25
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    ok. i see what you mean. but there's no reason that a card game contest can't be done. a lot of the stuff you're talking about is a.i., and card games fit right into that.

    how about...
    given a fairly random selection of cards in a solitaire game, organized in a regular solitaire fashion, where each card is represented by a unique ascii char, determine the best possible path to win the game.

    too easy? too hard? this is, imho, hard enough to make it challenging, and easy enough to let most people take a crack at it.

    any thoughts?

  11. #26
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    ill judge (i know 100% sure that ill get the scores in in time)
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  12. #27
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608

    Re: Re: Sign up: The Card Game Contest

    Originally posted by moi
    what is 52-pickup??????
    also known as cowboys and indians (the cards are the indians) the cowboys gotta round them up.
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  13. #28
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok this contest is a good one.. Quite hard i should say and really challenging... I am in.

  14. #29
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    ok. the due date is 2 weeks from today...midnight on the 24th.

    i'll post the updated thread later today. basicly:

    there will not simply be an array of cards to choose from, because that would make cheating very easy. there will be arrays of cards, showing only the ones that are facing up. (the ones facing down are invisible to the programmer.)

    card_array[0][0] might contain the card on the top of pile 1. card_array[1][1] might contain the second card down from the top of pile 2.

    so it's: int card_array[pile][card in pile going from top downward]
    0-6 will be the normal solitaire piles. pile 7-10 will be the ones on the top where you put them last. pile 11 will be the discard pile, which would show the card just served off the deck. all piles are read from left to right. cards 0-12 are diamonds, the next 13 are hearts, the next 13 are clubs, and the last 13 are spades. (so, red cards are 0-25, the black cards are 26-51). this is a global variable. (i would've made it local, but that's too much work for something like this.) if a card turns up -1, that means that card does not exist, and you've probably gone to the end of that pile. (if the first card in a pile is -1, that means that pile is empty.

    some functions:
    int new_card(void);
    this function takes a card from the serving pile (i forget the technical name) and places it in the discard pile. you can assume that each time it's only one card this is happening to. the value returned will be either the value of the card returned (cards are valued 0 to 51) or -1 if it has reached the end of the pile. it will automaticly reset if it's at the end of the pile.

    int move_card(pile number card is in, pile number card is moved to, number of cards moved);
    this returns a 1 if successful, and a 0 for failure. reasons for failure include breaking the rules or incorrect pile numbers.

    any possible functions i missed?

    your function will be called:
    int make_best_choice(void);
    inside it you will move cards, draw new cards, and basicly interact with the game so that you win. you are encouraged to use all the resources at your disposal to win, but it's impossible to peek. you can count cards that have already gone by, if you want to factor it into your decision.

    after deciding the right move the program should call the move function. then everything is automatically updated and you go through the process again until you win or lose.

    it's up to your program to decide whether or not to lose. a winning scenario is easy to spot, but a losing scenario requires that you concede defeat yourself. return a 0 for a defeat, and a 1 for a win.

    questions? this message will be duplicated in the directions of the beginning post of the thread, and on the contest web site.

  15. #30
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    Those are much better rules.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bitwise Unwanted Output
    By pobri19 in forum C++ Programming
    Replies: 4
    Last Post: 09-15-2008, 04:07 AM
  2. my upcoming UNO card game :)
    By Hussain Hani in forum Game Programming
    Replies: 5
    Last Post: 01-24-2008, 01:19 AM
  3. Card game help
    By aaroroge in forum Game Programming
    Replies: 9
    Last Post: 07-16-2005, 06:37 PM
  4. Sign Up -- The Next Contest
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 06-26-2002, 06:09 PM
  5. Sign up -- Contest Thread
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 70
    Last Post: 05-27-2002, 06:46 PM