Thread: AI contest: Connect four

  1. #31
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    It is easy enough to figure out if you are going first by checking if the board is empty before you move (at least that's what I've done).

  2. #32
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by PJYelton
    Just out of curiosity, is there a particular reason we can't just assume 'X' is going first?
    Why do you need to know?
    To me, the knowledge of who started the game isn't needed.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #33
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Why do you need to know?
    To me, the knowledge of who started the game isn't needed.
    Don't want to give my AI away, but lets just say its important. I think Lucky has the same idea

    Like I said, no biggee. I'll just do what Lucky's doing, check the first time around and store instead of checking every move.

  4. #34
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Here' s an early version of the program I'll use to judge the contest.

    It saves each game in a replay file, which can be used to replay old games move by move.

    The final version will look something like this. If you have time, please provide feedback about functionality, bugs and suggestions.

    EDIT:
    I dunno, but the gamefiles seem to be missing the actual main function that handles the running of the game... Can we get the working game in full? It would help me out a bit.
    This is probably what you're looking for.
    Last edited by Sang-drax; 10-23-2004 at 01:00 PM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #35
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Just looked at your Win32 version, LuckY. It works fine. I recommend it to you if you need to bugcheck/fine-tune your submissions.
    Perhaps I could modify it so it can read the log files created by my program. After each game, I'll post the logfile in the competition thread.

    EDIT: When the size of the board is changed within the Board class, the program expands the grid, but doesn't change the size of the playing window. It's easy to fix, though.
    Last edited by Sang-drax; 10-23-2004 at 01:17 PM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #36
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Hey, I haven't looked at the code but I'm just wondering how you plan to test everyones AI. Are they meant to compile it into DLL's for your windows app to open, send it over loopback sockets or are you just going to cut and paste?

  7. #37
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    They will provide code for me to compile in the program I posted above.
    DLLs and other libraries requires knowledge of a particular platform, which makes them less attractive for these uses.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  8. #38
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Since the deadline is in a week can everyone who will be turning in working AI please post, I'd hate to be the only one who enters

  9. #39
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    I got an extremely simple one working (slightly better than random), but I don't know if I'll be able to get anything worthy of submitting done by the end of the week. There's still hope, though!

  10. #40
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    I still think you should submit. The contest will be more fun if there are more participants.

    Submit your entries to the email adress I've added in the OP.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  11. #41
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Perspective will be participating in this contest. He will try not to speak in the 3rd person for much longer though, as it is quite annoying.

    so yeah, ive clocked 7 hours (4 sober) creating a mush of "AI" for this contest in a last minute surge of bordem combined with the rare and radiant free time i came across.

    Im gonna mess with my submission a little more before i submit though.

  12. #42
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    The email address in the OP is a little messed up, at least for me anyways. Is that supposed to read p04pst (at) efd.lth.se ?
    Last edited by Sang-drax; 11-03-2004 at 04:25 AM.

  13. #43
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Yes, but I messed it up on purpose to avoid spam.
    Please don't post it.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  14. #44
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    > The deadline is November 1st.

    well, due to an unaccessible C-Board i didnt submit in time. Is there any extension to compensate for the site's downtime? Im at work right now so the earliest i would be able to submit would be later tonight.

  15. #45
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    I haven't recieved any submission yet, so the new deadline is Wednesday November 10th.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Action Game - AI Contest
    By Queatrix in forum Contests Board
    Replies: 4
    Last Post: 01-18-2007, 06:55 PM
  2. New AI contest: sign up
    By Sang-drax in forum Contests Board
    Replies: 20
    Last Post: 07-27-2005, 05:54 PM
  3. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  4. AI Contest Proposal
    By MadCow257 in forum Contests Board
    Replies: 4
    Last Post: 03-13-2005, 03:27 PM
  5. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM