OThello 0.9 - finally working..

This is a discussion on OThello 0.9 - finally working.. within the Game Programming forums, part of the General Programming Boards category; I like the flashing myself . You can tell where the comp moved because flashing flashes each individual piece, so ...

  1. #16
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    I like the flashing myself .
    You can tell where the comp moved because flashing flashes each individual piece, so you can tell which one is the new piece put by the comp.

    PJYelton, to my knowledge, my last release DOES looks 5 moves down, i fixed the problem earlier, as i told you. I even tested it by making the move visible on screen while the computer is trying eacah possible move. I added that execute==2 thing later on to remove all the flickering on the screen.

    Anyway, i've added some weights, now it *usually avoids some bad spots for some strange reason. It *should avoid the bad spots whenever there are better positions available. But sometimes it doesn't, and i can't figure out why. Maybe it's got something to do with the minimax algo messing with the scores You can see that it avoids spots around corners most of the times if you run the demo play.

    Edit: Removed the files, new version can be downloaded below.
    Last edited by Nutshell; 04-17-2003 at 11:22 PM.

  2. #17
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    But where does it make the move? The only possibility is in the checkmove function, which in turn calls the direction search. It looks to see how many pieces can be turned, but only actually makes the move if execute equals one. If you think that it is making the move, tell me where, maybe I'm just blind!

    I feel like I'm being nitpicky, I'm sorry I really do think you've done a great job.

  3. #18
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Omg..how can i be so stupit
    Sorry, you were right. There was another bug in directionalSearch(). Now i fixed it. Here is the newest version with weights, with search depth 4.
    Attached Files Attached Files

  4. #19
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Ok, it plays much better now, congrats!

    It does make some stupid moves every now and then, and I think it is because you are evaluating the number of pieces turned over at the max-depth instead of evaluating the whole board. Look at this example:

    Move A allows the comp to turn over 20 pieces 5 moves down, but allows the human to turn over 40 pieces combined on moves 2 and 4.

    Move B allows the comp to turn over 10 pieces 5 moves down, but allows the human to turn over a total of 3 pieces combined for moves 2 and 4.

    Now obviously move B is better, but evaluating the number of pieces turned over at the max-depth will often times evaluate move A as better since 20 is greater than 10.

    Now I know your algorithm is a little more complicated than that, but stuff like this will fall through the cracks now and then, and it only takes one stupid comp move for the human to take over.

  5. #20
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Much more impressive now. It's beating me 50% of the time (out of 6 games) You still might want to fix the spelling errors and the spacing error with the status...see my attachment above.
    Away.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 08:35 PM
  2. working out...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 04-10-2003, 11:20 AM
  3. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 05:08 AM
  4. getting current working filename
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 04-17-2002, 04:42 PM
  5. What ive been working one, GL related
    By Eber Kain in forum Game Programming
    Replies: 3
    Last Post: 10-15-2001, 10:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21