Slashdot Mirror


AI Takes On Pac-Man

mikejuk writes "AI takes on Pac-Man — well, in fact it plays both sides. An annual competition challenges participants to write Java programs to control Pac-Man or the ghosts. It might not be chess, but it pits machine against machine, with algorithms going head-to-head as the AI ghosts try and eat AI Pac-Man."

113 comments

  1. am i the only one who misread it as al-Pacman? by decora · · Score: 3, Funny

    i have no idea what 'arabic pacman' would look like, but i was so eager to click and find out. imagine my disappointment.

    1. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      I thought it was a boxing reference. Someone was challenging Manny 'Pacman' Pacquiao in the boxing ring.

    2. Re:am i the only one who misread it as al-Pacman? by lennier1 · · Score: 4, Funny

      Ms Pac-Man would be a lot easier. The burqa reduces the whole thing to a dark featureless circle that's moving around.

    3. Re:am i the only one who misread it as al-Pacman? by yincrash · · Score: 1

      I thought it meant Weird Al takes on Pac-Man.

    4. Re:am i the only one who misread it as al-Pacman? by haystor · · Score: 3, Funny

      One of the pacman clones was OPECman.

      --
      t
    5. Re:am i the only one who misread it as al-Pacman? by mikejuk · · Score: 2

      Look I'm the one who submitted it and I read it as AL - as in the Paul Simon song. So to me it reads - someone called AL is taking on Pac-man..... who is a she anyway,,,, there is no hope....

    6. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      Upper case I and lower case l are just too similar in some fonts. l don't Iike that...

    7. Re:am i the only one who misread it as al-Pacman? by Moryath · · Score: 2

      I thought we had a video of Weird Al either playing Pac-man, or doing a song about Pac-Man.

      Damnit Slashdot. You got my hopes up.

    8. Re:am i the only one who misread it as al-Pacman? by Riceballsan · · Score: 3, Funny

      He already did one about pac-man, it just never was released on an album http://www.azlyrics.com/lyrics/weirdalyankovic/pacman.html

    9. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 1

      Ms Pac-Man would be a lot easier. The burqa reduces the whole thing to a dark featureless circle that's moving around.

      Wouldn't she looks like one of the ghosts?

    10. Re:am i the only one who misread it as al-Pacman? by maxwell+demon · · Score: 1

      Well, Arabic Pacman has of course a few extra rules:

      There's Ramadan, a time where Pacman isn't allowed to eat anything. Eating during that time decreases score instead of increasing it.
      There's the suicide attack option: Pacman can explode, which costs one life, but kills all the ghosts close to it (adding to the score accordingly).

      --
      The Tao of math: The numbers you can count are not the real numbers.
    11. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      I think Al Bundy would do better.

    12. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      ha....ha....

    13. Re:am i the only one who misread it as al-Pacman? by sorak · · Score: 3, Funny

      Ms Pac-Man would be a lot easier. The burqa reduces the whole thing to a dark featureless circle that's moving around.

      Wouldn't she looks like one of the ghosts?

      Except the ghosts would all have the remnants of detonated bombs strapped to their chests.

    14. Re:am i the only one who misread it as al-Pacman? by xmousex · · Score: 2

      i read the title as A.I. Pacman, as in artificial intelligence and then when i clicked on the article i was like YEAAAAAAAAH!!!! IM RIGHT! WHOOOOOOO!!! IN YOUR FACE!

      nah really i didnt even read it

    15. Re:am i the only one who misread it as al-Pacman? by frogjimmy · · Score: 1

      i have no idea what 'arabic pacman' would look like, but i was so eager to click and find out. imagine my disappointment.

      You're disappointed? I couldn't figure out why the hell anyone would care if Allen Iverson could beat Pac-Man in the first place. Note to readers : This has nothing to do with the basketball player "AI" Allen Iverson. *sigh*

    16. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 1

      Well, Arabic Pacman has of course a few extra rules:

      There's Ramadan, a time where Pacman isn't allowed to eat anything. Eating during that time decreases score instead of increasing it.
      There's the suicide attack option: Pacman can explode, which costs one life, but kills all the ghosts close to it (adding to the score accordingly).

      If you blow up all 4 ghosts (genies), you immediately get to the highest level and hang out with 72 Ms Pacmans...

    17. Re:am i the only one who misread it as al-Pacman? by bryan1945 · · Score: 1

      We would be interested to see if he would 'practice' first.

      --
      Vote monkeys into Congress. They are cheaper and more trustworthy.
    18. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      Too far.

    19. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      It's actually supposed to be a Mexican Pacman, but the submitter misspelled El Pacman.

    20. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      No not really

    21. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      In only four posts we got from a not particularly funny comment about being arabic to a suicide-bombing terrorists. Bravo, gentlemen.

    22. Re:am i the only one who misread it as al-Pacman? by hairyfeet · · Score: 3, Insightful

      Hell I'd just be happy for game AI that doesn't blow rancid chunks before falling over and dying. Any game designers here? For the love of kittens and everything decent in the world STOP WITH THE BAD AI as it just ruins a game, it really really does.

      There was a time, a short time mind you, but still a time, along about Far Cry I and Fear I where I was thinking "hey, finally! Thank fricking God! These guys are trying to flank me! They aren't lining up to be shot! Woo hoo, I'm having fun!" but then developers went back to caring only about bling and burst my little happiness bubble. Play RF:Guerrilla? You will spend most of your time shooting the good guys as they all can't wait to run right out in front of you while you are trying to fire. For the hell of it I put in the explosive pistol mod so I can just stand there and watch them ragdoll each other since none of them have the sense not to fire if their friends step in front of them.

      So maybe stuff like TFA will help them learn how not to design dumb as stumps AI, hell if I know. Everyone talks about "realism" but nothing completely blows realism right out the airlock like watching a bad guy bang himself against a wall over and over again, or having them take "cover" behind the EXACT SAME CHEST HIGH WALL where I've piled three dozen of the friends in a kill box because their fricking heads stick out, or the worst having AI "help" that don't know which end of the gun to point at the enemy and who promptly run out into the open with such inane stupidity it seems like a race to see whether you or the bad guy will cap them first.

      So please game devs, for the love of titties and beer and all that is good and right in this world, just stop okay? Nobody is asking for Einstein here, just not so damned retarded that they make Forest Gump look like Carl Sagan.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    23. Re:am i the only one who misread it as al-Pacman? by Anonymous Coward · · Score: 0

      Why not Al Lowe? (Leisure Suit Larry games)

    24. Re:am i the only one who misread it as al-Pacman? by EdIII · · Score: 1

      It's not featureless. You would see some of her eyes through the "bars" on her face. So it would like a dark circle running around with weird Gothic looking eyes.

      Not to mention she would have to lift her dress to eat the dots.... at which point she might... *might*... show some ankle. What that looks like is beyond me.

      So I would imagine Ms Pac-Man would be easier to imagine as a yellow ball underneath a burqa that gets stoned to death if she does anything on the grid.

    25. Re:am i the only one who misread it as al-Pacman? by EdIII · · Score: 1

      It's really really sad..... but I have to say you are kinda of wrong about the realism part here.

      I have a friend who served in Iraq and he told me that many of the young men would run down the middle of street just spraying AK47 fire everywhere while they took cover behind various objects. He would pop up real quick and put one or two in the guys chest. Rinse, wash, repeat.

      The worst part, and one I could tell hurt him quite a bit, is when one of the guys he put two in the chest was a 12 year old.

      So perhaps the AI developers were just interviewing soldiers from Iraq and Afghanistan.

      Like I said, sad. Where is a +5 bummed me out where you need huh?

    26. Re:am i the only one who misread it as al-Pacman? by lennier1 · · Score: 1

      At best you'd see a darker spot near the eyes.
      Sure you're not thinking of a niquab?

    27. Re:am i the only one who misread it as al-Pacman? by anomnomnomymous · · Score: 1

      Or the YouTube link.

      --
      When you shoot a mime, do you use a silencer?
    28. Re:am i the only one who misread it as al-Pacman? by hellop2 · · Score: 1

      ARMA/ARMA2 has some pretty good AI. Great game too.

      --
      How many more years will slashdot have an off-by-one error on your Score in your profile?
    29. Re:am i the only one who misread it as al-Pacman? by EdIII · · Score: 1

      No, the niquab is the one where you get to see their eyes. Which can be a little sexy because you are just looking at their eyes which I guess does not work for the real hardcore Muslims that cannot allow even the smallest glimpse of a woman to reach their eyes.

      The burqa is the head to toe one where you live your life looking out through prison bars so that a man from a distance would find it virtually impossible to see skin, much less eye contact. You could be a few feet away and have a hard time actually looking into her eyes.

      So I was imagining a black and white/yellow grid running around in a blue/black robe. It might actually work... but she would have to run over the dot, sit down on it, get back up, then run to the next dot. Not exactly competition for even the most AI retarded Ghosts.

  2. cross-dressing pac man by Anonymous Coward · · Score: 1

    if course the screen shot is from Ms Pac-Man

  3. Already Over by ctrimm · · Score: 3, Informative

    The contest for this year is now over.

    It would have been nice to know when it started... Guess I'll just have to prepare for next year.

    1. Re:Already Over by ByOhTek · · Score: 3, Insightful

      That's slashdot for you. "Olds for geeks, stuff that probably doesn't matter."

      --
      Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
    2. Re:Already Over by mikejuk · · Score: 1

      Agreed... the publicity for it was low key until the results were out. Maybe next year. The good news is that the interface between the game engine and the controller is very easy to work with. Start with the random move example and work up. mikej

    3. Re:Already Over by Anonymous Coward · · Score: 2, Insightful

      why the fuck? pacman can be played "perfectly" because the ghosts always move the same depending on what the player is doing. that's how some people can play it till they drop, it needs no thinking. and if you're writing control code for the ghosts then it's bye bye for pacman no matter how pacman is controlled.

      you know what's a real challange? writing a cs bot that passes as a human. no need to wait for pesky competition either.

    4. Re:Already Over by SydShamino · · Score: 1

      Somehow the fact that your quote includes a grammatical error makes it even more appropriate.

      --
      It doesn't hurt to be nice.
    5. Re:Already Over by arth1 · · Score: 1

      Looking at his post, I can't see any errors. Unless you mean whether punctuation should come before or after the closing quote, which depends on where in the world you are.

    6. Re:Already Over by camperdave · · Score: 1

      Is a comma the appropriate punctuation to use between two partial sentences?

      --
      When our name is on the back of your car, we're behind you all the way!
    7. Re:Already Over by Anonymous Coward · · Score: 0

      Depends on the language and the kind of partial sentences. In this case, yes.

    8. Re:Already Over by opus · · Score: 1

      The article gets it wrong. The competition is actually run with Ms Pac-Man, which is more random than the original Pac-Man.

    9. Re:Already Over by butalearner · · Score: 1

      Wow, how are so many people in this thread wrong in so many different ways?

      First of all, they *did* run this competition before, but they are re-running it next month. That's why if you play follow the links you get to the actual contest page and you see this:

      We have decided to run the competition for CIG 2011 (in addition to CEC 2012 next year)! We will open the submission server on July 1, 2011; you can then submit and evaluate your controllers. The deadline for final submissions will be August 17, 2011

      Second of all, the contest is not just about writing Pac-Man AI, because you can enter ghost team AI as well. It turns out they are using Ms Pac-Man, but the original game's randomness doesn't matter. They've also tweaked certain aspects of the original game for balance, e.g. no slight speedup going around corners.

      Now, if they would only provide more language interfaces than just Java, it'd be fantastic. The Google AI challenge last November was awesome and it had tons of languages including Lisp, in which the winning entry was written. If anybody from the contest team is reading this, add C++ or Python, please!

    10. Re:Already Over by Anonymous Coward · · Score: 0

      You just need the bot to go to the enemy lines, get shot, and curse in the chat after that, and bingo - you got nobody suspecting it is a bot.

    11. Re:Already Over by Anonymous Coward · · Score: 0

      Actually, they are holding the same competition for another conference later this year, and the submission deadline is August 17

      http://www.pacman-vs-ghosts.net/

  4. Pac-Man is too hard by cpu6502 · · Score: 2, Interesting

    It always amazes me when I show Pac-man to various people and they "It's too hard." And yet here's an AI that can apparently beat it..... what does that say about my friends and coworkers?

    For me the Arcade versions are just about right, as far as difficulty. The home versions (Atari, Commodore) are all too easy (ghosts are dumb), except for the Jr. Pac-Man variant released in 1984 that has intelligent ghosts.

    --
    My AC stalker: " I personally agree with your posts most of the time, but that won't keep me from modding you troll"
    1. Re:Pac-Man is too hard by Anonymous Coward · · Score: 0

      Um... I didn't see where the AI was beating it.

    2. Re:Pac-Man is too hard by h4x0t · · Score: 1

      There's an AI that can rule Chess too, also Jeopardy. What does that say about your friends and coworkers? Nothing

    3. Re:Pac-Man is too hard by Anonymous Coward · · Score: 2, Insightful

      And yet here's an AI that can apparently beat it..... what does that say about my friends and coworkers?

      That apparently, there are some things computers are better at than people?

      QUICK! What's the 761st decimal place of pi?
      Does it make some statement about you that a computer can calculate the above several of orders of magnitude faster than you?

    4. Re:Pac-Man is too hard by i.r.id10t · · Score: 4, Informative

      To be fair, AI isn't required to beat the original quarter sucking machine - simply memorize the map patterns. Heck I remember buying a book that had the patters for all of the levels when I was a young lad...

      --
      Don't blame me, I voted for Kodos
    5. Re:Pac-Man is too hard by 19061969 · · Score: 3, Insightful

      I guess it would say that your friends and coworkers are thick as shit or really aren't that interested in video games.

      But then, you can also ask the AI, "where's the salt?" or other some such question and wait for a sensible response. Or ask it to catch a ball. Or navigate its way through a town, find a nice birthday present, bake a cake, create spontaneous conversations with strangers... Lots of things that I'm sure it would fail at.

      --
      bang goes my karma... again...
    6. Re:Pac-Man is too hard by the+phantom · · Score: 2

      There is more to beating Pac-Man than simply knowing the algorithm for evading the ghosts. One must also be able to implement that algorithm, which requires a certain amount of physical skill (i.e. pushing the right buttons in the correct sequence at the appropriate times). Moreover, one actually has to play the game enough learn what the algorithm is (that is, there is no reason to expect a novice player to immediately see the movement patterns of the ghosts). Pac-Man might be easy to someone who has spend hundreds of hours playing it, but will probably be quite difficult for someone who has only played it for 5 or 10 minutes here and there.

      By the same logic, pool should be a very simple game. There really isn't much more to it than geometry and a little bit of physics. Unfortunately, knowing how the cue ball should behave, and actually getting it to behave in that manner are two very different tasks.

    7. Re:Pac-Man is too hard by Raenex · · Score: 4, Insightful

      It always amazes me when I show Pac-man to various people and they "It's too hard." And yet here's an AI that can apparently beat it..... what does that say about my friends and coworkers?

      What does this dumb comment say about you?

    8. Re:Pac-Man is too hard by Anonymous Coward · · Score: 0

      What does it say about them that they have to "show pac-man" to people like it's some big find

    9. Re:Pac-Man is too hard by FoolishOwl · · Score: 2

      AI chess programs have been beating chess grandmasters for years.

      Machines are better than people for lots of things. That's why we build machines.

    10. Re:Pac-Man is too hard by Anonymous Coward · · Score: 0

      where do you find those people? and how they can regard it as hard when it acts to certain rules and can be beat with patterns? is it hard because it's boring?

    11. Re:Pac-Man is too hard by Jaqenn · · Score: 4, Interesting

      Gamasutra did an awesome article a few years ago talking about the creation of PacMan. Link: http://www.gamasutra.com/view/feature/3938/the_pacman_dossier.php

      It included a fascinating discussion of the Ghost AI behavior. The short version is that the Ghosts can't turn around*, and try for the shortest path to their target tile. The Red ghost is aiming right under you, the Blue ghost is aiming for 3 tiles ahead of you, the Yellow ghost is aiming for 3 tiles behind you, and the Orange ghost is aiming for the center of the map (which he can't reach, so he orbits the spawning area).

      This leads to interesting tricks where you manipulate the Blue and Yellow ghost by changing directions right as they pathfind, so that they target a tile that you don't care about and get out of your way until the next fork in the maze.

      It is my understanding the current world record holder did NOT memorize map patterns and timing, but by learning the AI behavior and manipulating the ghosts. This was successful because people who memorize the routes are screwed if they mess up timing on a turn or something, but this technique lets you have a fighting chance to recover.



      *The ghosts take short breaks every ~15 seconds where they stop targeting you and start targeting an assigned corner of the maze. When a break starts or stops all ghosts suddenly reverse direction as a tell. They reverse direction even if it means not killing you, and even if it means they're going away from their target tile.

      --
      You are awash in a sea of fiercely stated opinions. Obvious exits are: 'File->Quit', 'Reply', and 'Page Down'.
    12. Re:Pac-Man is too hard by elsurexiste · · Score: 3, Insightful

      It always amazes me when I show Pac-man to various people and they "It's too hard." And yet here's an AI that can apparently beat it..... what does that say about my friends and coworkers?

      I can't beat level 3, yet I'm sure I can program an AI that could play better than me. What that's supposed to mean? :)

      --
      I rarely respond to comments. Also, don't ask for clarifications: a brain and Google are faster, believe me!
    13. Re:Pac-Man is too hard by AchilleTalon · · Score: 3, Insightful

      AI is not about finding an algorithm to beat the machine, it should be about an algorithm that can learn while playing an improving itself until it can beat the machine. This is AI. Finding and programming an algorithm beating the machine isn't AI, it is real intelligence since the programmer has done all the work until his/her algorithm effectively beat the machine.

      --
      Achille Talon
      Hop!
    14. Re:Pac-Man is too hard by antdude · · Score: 1

      There is a monkey/chimp that play(s/ed) Ms. Pac-Man. See http://www.google.com/search?hl=en&tbm=vid&q=monkey+pac-man&aq=f&aqi=&aql=&oq= for the video clips. :)

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    15. Re:Pac-Man is too hard by arth1 · · Score: 1

      In addition, the two short corridors right under where the bonuses appear are special, in that ghosts cannot enter them from below. It's one of the few ways you can escape a trailing Binky, or catch a rest to let a ghost pass below you.

      Anyhow, I can't see how someone's AI managed a 69000 score against modified AI ghosts. I would think that with four ghosts that can cooperate, you should be able to guarantee pac-man's capture within the first level?

    16. Re:Pac-Man is too hard by Yogiz · · Score: 1

      What you are talking about is machine learning. It's not the same as AI.

    17. Re:Pac-Man is too hard by PRMan · · Score: 1

      That's what Artificial Intelligence is. Or was.

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
    18. Re:Pac-Man is too hard by Anonymous Coward · · Score: 0

      They don't spend nearly as much money on 30 year old games as you do.

    19. Re:Pac-Man is too hard by opus · · Score: 1

      It is my understanding the current world record holder did NOT memorize map patterns and timing, but by learning the AI behavior and manipulating the ghosts. This was successful because people who memorize the routes are screwed if they mess up timing on a turn or something, but this technique lets you have a fighting chance to recover.

      You are mistaken, because first, there is a maximum score and the first person to reach it used patterns. Secondly, those who have the perfect score can go those hours without blinking after many tries. It's hard, but if you can do it, then it's not a weakness to the method. Finally, although anyone who's played it that long can recover from a broken pattern, you can't just freestyle, because the maximum score requires you to get every prize that appears, without fail. The length of the feat requires that any serious contender use patterns.

      I'm not planning investing months in getting a perfect Pac-Man score, but I have respect for those that can do it.

    20. Re:Pac-Man is too hard by opus · · Score: 1

      Some confusion in this topic is due to the title of the article. The actual competition uses Ms Pac-Man, which does not have patterns.

    21. Re:Pac-Man is too hard by opus · · Score: 1

      I thought this too. I supposed that each ghost must be limited to line-of-sight information, and perhaps knowledge of the maze as well. However, I see no such restrictions:

      Ghost-Team-Specific Rules

      There are no restrictions regarding the actions of Ms Pac-Man: movement in any direction not blocked by a wall is allowed at all times. For the ghost team, on the other hand, three restrictions apply:

      The first follows from the original game specifications and prevents a ghost from turning back on itself. In other words, a ghost may only choose its direction at a junction, choosing any of the paths available except the one the ghost used to approach the junction.

      The second restriction is adapted from the original game: occasionally there is a global reversal event when all the ghosts suddenly change direction. In the original game this happens when particular conditions are met (such as a specific number of pills having been consumed). In our implementation a global reversal event can happen on any game tick with a small probability. This adds an element of randomness to each game. We believe the first two restrictions are essential to allow for complex game play to emerge.

      Finally, the third restriction is competition-specific: in order to prevent the ghosts from spoiling the game by constantly blocking the power pills (in which case the game would result in a stalemate), each level finishes after 3000 time steps; all remaining pills are awarded to Ms Pac-Man. It is thus in the interest of the ghosts to catch Ms Pac-Man as quickly as possible. For testing, it may be useful to eliminate the time limit. In order to do so, just set the value for limit in Constants to a very high value.

      It still seems like four ghosts would be enough to trap a Ms Pac-Man whose location is known at all times.

    22. Re:Pac-Man is too hard by Anonymous Coward · · Score: 0

      That those who can't do, teach?

    23. Re:Pac-Man is too hard by Anonymous Coward · · Score: 0

      My favorite quote from a college professor:

      "A computer is a high-speed idiot."

    24. Re:Pac-Man is too hard by Relic+of+the+Future · · Score: 1
      "...ask the AI, "where's the salt?" or other some such question and wait for a sensible response. Or ask it to catch a ball. Or navigate its way through a town, find a nice birthday present, bake a cake, create spontaneous conversations with strangers... Lots of things that I'm sure it would fail at."

      As my AI prof often said, "AI is whatever we haven't taught a computer to do yet."

      --
      Those who fail to understand communication protocols, are doomed to repeat them over port 80.
    25. Re:Pac-Man is too hard by arth1 · · Score: 1

      There are no restrictions regarding the actions of Ms Pac-Man: movement in any direction not blocked by a wall is allowed at all times.

      Tsk, that's exploitable. It opens up for a Ms. Pacman that runs diagonally through intersections, enters the ghost den, and levitates to let the ghosts pass under her. No wonder someone scored 69,000 points!

      each level finishes after 3000 time steps; all remaining pills are awarded to Ms Pac-Man. It is thus in the interest of the ghosts to catch Ms Pac-Man as quickly as possible.

      No, that does not follow. Sheesh. These guys must have flunked logic 101. What follows is that it's in the interest of the ghosts to catch her before 3000 time steps, which is not the same as "as quickly as possible". If you can devise a plan that always catches her within 2800 time steps, that is far preferable to one that has a good chance of catching her much quicker, but a risk of her getting away too.

      Anyhow, seeing how a pack of dogs hunt, it shouldn't be too hard to catch her. Two to drive, and two to catch, miyp, miyp, game over. Insert another quarter.

    26. Re:Pac-Man is too hard by 0137 · · Score: 1

      you got three out of four ghost behaviors wrong. actually i'm not sure that the yellow ghost description is wrong per see because there is no yellow ghost. :)

  5. 4 1 by N1tr0u5 · · Score: 1

    Given equal AI (and ghost speed of, say, 75% of Pac Man), the ghosts will always win. If you assume that they are programmed to give PM a little bit of room around the power pellets, taking that time to spread out around the possible exits from the pellet area, then a four mob coordinated predator pack will have no problem tagging a one mob prey, even with the occasional role switch.

  6. Re:4 1 by Rogerborg · · Score: 1

    Well, it's Monday morning, so I guess that's the traditional time for verbal quarterbacking.

    --
    If you were blocking sigs, you wouldn't have to read this.
  7. Re:4 1 by Anonymous Coward · · Score: 2, Interesting

    This is one of the real weaknesses of the topic of AI as it relates to games.
    We can make the AI more and more advanced, but this is not in the end what is needed. In most games the opponents will have to outnumber the player(s) for the game to be fun, and have to be tough enough as well. If you make them too smart, they'll always win, so you'll have to keep their intelligence down - and possibly their reactiveness, precision &c. as well.

  8. Re:The Day Apple's decline began: by Hognoxious · · Score: 2

    I got quite a few hits for "nerblack", but none apparently in the same context. "pahasian/payasian" & "bougnordafricain" came up dry, I'm afraid.

    Sloriental was a hit.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  9. Re:4 1 by Anonymous Coward · · Score: 0

    Well, ghost have some movement restrictions while pacman is free to move as she wants. Furthermore she wins if she survives till time runs out.
    It looks like pacman and ghost have the same speed, though. Even around corners and tunnels.

  10. Hmm. That reminds me of Snack-Man by VortexCortex · · Score: 4, Interesting

    I once got bored of the same old pac-man levels and made a clone called Snack-Man in JavaScript (before canvas, w/ ms paint).

    When the levels are always the same, you can make certain optimizations to the AI, but when the levels can change a lot, it does add another layer of complexity. I once trained a neural network for each of the 20 levels of the clone -- the AI was as good as I was, but change the level, and it had to be re-trained.

    Looks like Snack-Man it's still being hosted, IIRC, it used to work in Firefox and some version of IE, never did work all the bugs out (hence "epsilon"), oops, looks like I left the enter key = reset ghosts on too. Oh well, I've always used an honor system anyhow (game speed is controllable).

    Man, just listen to those crappy MIDI tracks... (brings back memories of Y2K), at least the volume controls still work.

    Ah yes, if you paste this into the address bar while paused it turns off the, er, noms, while leaving other sound effects in place...
    javascript:void(NOM_NOM_NOM_NOM = false);
    (I guess I never did upload the version with that option toggle.)

    Entering: javascript:void(debug = true);
    in the address bar, then using "new game" will show the ghost's "vision" boxes.

    Yep, looks like the exponential ghost-point glitch never got fixed either.
    Each ghost you eat while they are "scared" doubles the point value of the next ghost you eat. So, all you have to do is keep at least one ghost edible while the others respawn, then eat more diet pills, ghosts & 1ups, and you can max out the score on the second level.

    Been so long since I coded any JS... I might try to port this over to Android and give it a face lift.

    Oh, back on topic -- It's pretty neat to watch TFA's AI vs AI, but IMHO, even crappy AI is good enough to best most humans.

    The first incarnation of my clone used a dynamic heuristic shortest-path algorithm for the smartest ghost instances, and other techniques for the other ghosts, but it really was too hard to be enjoyable for most everyone, and the JS engines circa Y2K were too slow to run the advance AI unless you have a very fast rig. It's still pretty tricky with just "dumb magnetic" attractors -- I even had to add blind spots, and make it so the ghosts never reverse directions (unless they have to) before anyone ever got half way through.

    Sometimes fun is more important than clever AI -- I guess in today's very complicated shooters and strategy games the AI would have a much harder time catching up to human opponents, but Pac-Man should be a breeze.

  11. P-Robots by Machtyn · · Score: 2

    Anyone get the idea that this is a rip from the P-Robots idea? I was first introduced to this "game" in high school in my Pascal class. Essentially, each coder uses Pascal to create a robot. The game would load the robots and have them battle it out. Apparently, there is still a following.

    1. Re:P-Robots by HeckRuler · · Score: 3, Interesting

      I got introduced to programming via Advanced T-Robots, actually. Similar, but assembly-like code.

      But no, programming games have moved on since P-Robots. Not much. Depressingly little, actually. But there is only the hazy genre link between this pacman AI competition and P-robots.

    2. Re:P-Robots by ctrimm · · Score: 1

      I did something similar in Java back in a HS Tech-prep class. It was called J-Robots, naturally. I wouldn't consider this competition the same concept, though. Sure, they both battle AI bots against each other, but the constraints are different. For instance, the J/P-Robots (in my experience) had an open "field" for the robots to operate in, while Pacman has a map. Robots was a free for all, while Pacman was one vs many.

    3. Re:P-Robots by TuxThePenguin2205 · · Score: 1

      Anyone remember a robot war variation on the old Research Machines (RM) 480Z systems ? I would love to play with it again for nostalga's sake.

    4. Re:P-Robots by Anonymous Coward · · Score: 1

      I got introduced to programming via Advanced T-Robots, actually. Similar, but assembly-like code.

      But no, programming games have moved on since P-Robots. Not much. Depressingly little, actually. But there is only the hazy genre link between this pacman AI competition and P-robots.

      It's because people who might be interested in that kind of thing are busy writing farming bots for MMO's like WoW and aimbots for the FPS genre.

  12. Spelletjesplaats by Anonymous Coward · · Score: 0

    I thought that you can play pacman on
    http://www.spelletjespaats.be

    NO?

  13. Re:4 1 by bbeagle · · Score: 2

    It's not that simple. The rules for the ghosts are different from Pac man. Pac man can change directions at any time, while the ghosts can only make decisions at intersections, and cannot go backwards. When the ghosts get to an intersection, they only have 3 possible directions to go. Pac Man, on the other hand has 4 possible directions to go (including backwards), and can do this at any time, not just intersections.

  14. Not a terribly complex game, surprisingly by davidbrit2 · · Score: 4, Informative

    Assuming they're pitting their Pac-Man bots against the logic of the original arcade game, there isn't a whole lot of complexity to deal with. All four of the ghosts behave in different, but very predictable fashion. In a nutshell, every ghost chooses its target space on the board differently, but they all close in on their respective target space in exactly the same manner. Knowing how these target spaces are chosen, one could probably write a reasonably effective AI player only needing to "think" a few hundred frames in advance. This is difficult for a human player to do in real time, of course

    There are a couple of interesting articles about how the game works. If you've played the game and know how unpredictable the ghosts can seem at times, it's remarkable to find out that the algorithms behind their behavior are so incredibly simple. I used to wonder if the game employed some kind of sophisticated path-finding algorithm like A*, but it's actually nowhere near that level of complexity.

    Anyway, this seems like it would make a cool undergrad project for an AI class.

    1. Re:Not a terribly complex game, surprisingly by HeckRuler · · Score: 1

      Yes, against the ghosts' logic in the original game. But what if, and this is just a crazy idea, we pit the pacman-AI against the ghost-AI? It'd be some sort of competitive contest.

      Also, isn't the ghost's side trivial? Pacman can't cover the entire board while invisible, so why not have two ghosts guard the remaining pellets? Once the 4 power-ups are gone, Pacman can't force his way past. It's a draw at best, and Pacman is stuck on lvl 1 with an upper limit to his score.

    2. Re:Not a terribly complex game, surprisingly by petermgreen · · Score: 2

      http://www.pacman-vs-ghosts.net/rules

      Looks like they introduced a few rules to make the ghost team's life harder.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    3. Re:Not a terribly complex game, surprisingly by HeckRuler · · Score: 2

      Huh. It look like a stalemate game goes to Pacman.

    4. Re:Not a terribly complex game, surprisingly by bryan1945 · · Score: 1

      But how would you set it up that the ghost guard the pellets? They have to keep moving, so at some point the pellets will be exposed.

      --
      Vote monkeys into Congress. They are cheaper and more trustworthy.
    5. Re:Not a terribly complex game, surprisingly by sourcerror · · Score: 1

      "Assuming they're pitting their Pac-Man bots against the logic of the original arcade game,"

      Ghost have upgraded AI, not the original. Also, you can enter the competition writing ghost AI as well.

  15. uh oh a.i. by Anonymous Coward · · Score: 1

    A.I. starts with Pac Man and then soon enough it becomes global thermonuclear war.

    "Hello Dr. Falken. Would you like to play a game?"

  16. FTFY by TangoMargarine · · Score: 1

    AI ghosts try and eat AI Ms. Pac-Man

    Giggity.

    --
    Unity? Screw that: XFCE. Slashdot Beta? Screw that: SoylentNews. Australis? Screw that: Pale Moon. UX developers DIAF
  17. Rog-O-Matic by Anonymous Coward · · Score: 1

    This brought on a strong blast of deja vu; there was a program called Rog-O-Matic that successfully played the text-based (but 2-D) game Rogue back in 1984. Rogue was actually a bit like Pac-Man, in some ways; in both you wander around a rectangular grid picking up treasure and avoiding monsters.

  18. Re:4 1 by ifrag · · Score: 1

    In addition to this, the contest adds a random low probability chance each cycle that the ghosts directions actually will be reversed (different from behavior in the vanilla game, but equally no choice in the matter). So even repeat simulations vs the same AI's could yield different results.

    --
    Fear is the mind killer.
  19. Re:The Day Apple's decline began: by Toonol · · Score: 0

    Tea Tardiers

    Why do people think that juvenile name-calling like that will actually help their cause? The best you can hope for is that people think both you AND the tea party are idiots; the worst is that they leave with the impression that you're an idiot, and that the tea party is that which an idiot hates.

    The same thing holds for the right when they call Democrats "Demotards" or some such juvenile name. Or when somebody calls Obama OR Bush stupid names. Or, for that matter, when they do the same think to Apple, Microsoft, Linux, or Sony.

    I'm all for arguing about and insulting people, organizations, and political parties. You should realize, though, that when they're on the level of an eight year old, they're not going to sway anybody except other third graders. To converse with adults, you should learn to speak as an adult.

  20. Re:4 1 by Anonymous Coward · · Score: 0

    If you have an AI competing against another AI, it doesn't matter if one AI always wins, because the other AI isn't in it to have "fun". You just pick an arbitrary metric and try to make the losing AI "better"... i.e. last longer without dying, get a higher score, etc.

  21. Would love to see this for FreeCiv by crow · · Score: 2

    This would be a great contest for other games, especially ones that already have a computer player that, in theory, is supposed to be equivalent to the human player. When I played FreeCiv, I was thinking that it might be more fun to program a strategy than to play it live. You could then run tournaments among the different AIs, rank them, and then when playing for real, let the player select a skill level that determines which AIs are selected.

    That might be complex, but some games, like Settlers of Catan would also work for this.

  22. google pac-man by Anonymous Coward · · Score: 0

    http://www.google.com/pacman/

  23. Re:The Day Apple's decline began: by Anonymous Coward · · Score: 0

    Meanwhile the argument from the "conservatives" or as we call them today "Tea Tardiers": why should employees be paid enough that they can get through each month covering the cost of transportation, groceries, rent, and be able to save a little towards the future? They should all be working slave wages in fenced compounds, forced to buy things back from the company store and never get out of debt like in the "good old days." Only the uber-rich should have anything nice, the rest should either work till they die or go to the debtor's prisons

    Straw man arguments are lies.

  24. moderators frighten me sometimes by decora · · Score: 2

    arabic does not mean 'terrorist' , it doesnt even necessarily mean 'muslim'.

    serves me right for trying to make an innocent joke that was even remotely related to culture. i should have predicted what would happen.

  25. yes. we are obsolete by decora · · Score: 1

    and will soon be replaced by arduinos

  26. Re:The Day Apple's decline began: by Moryath · · Score: 0

    I have yet to meet a Tea Tardier that functioned on the level of an adult. It starts around Sarah Palin and quickly goes downhill from there.

  27. Re:Hmm. That reminds me of Snack-Man by kent.dickey · · Score: 1

    Thanks, it was fun diversion. I don't mind the NOM NOM sounds, but perhaps they could be at a softer volume compared to the other sounds.

    As for difficulty, it feels a little like the ghosts are ignoring me much of the time. I think your post was trying to say the ghosts have line-of-sight? So they don't head for me until they see me?

    I like the idea of the walls which you can only go through in one direction, but the ghosts can go through in either direction.

  28. Re:The Day Apple's decline began: by Anonymous Coward · · Score: 0

    It starts around Sarah Palin and quickly goes downhill from there...and at the foot of that hill is you.

  29. Cooperative ghosts should always wins by GodfatherofSoul · · Score: 1

    If you draw horizontal cross-sections through the map, there really is never more than 4 paths up or down through the map for Pac-Man to escape. Ghosts would have to orbit until everyone is in position, but Pacman is raping the map anyway until all the ghosts show up. All the ghosts have to do is get themselves to these bottlenecks, determine if Pacman is up or down, then migrate their blockade in that direction. Even if Pacman moves through the wrap-arounds, they can reestablish their blockades and repeat.

    At best, Pacman gets trivial points. Now, there might be some small windows where Pacman can duck through the blockade as ghosts orbrit, but I bet the mutual support would still be able to pick him off.

    --
    I swear to God...I swear to God! That is NOT how you treat your human!
  30. kept reading it as al by Anonymous Coward · · Score: 0

    due to the font, i kept reading that wondering who the hell al was
    this is a good reason why we should go back to using the dots

  31. Re:4 1 by JTsyo · · Score: 1

    Does the AI ghosts "talk" to each other or just run their algorithm? Do they all even run the same algorithm?

  32. Pac-man? by JTsyo · · Score: 1

    Wake me up when they can play Starcraft
    oh wait...
    http://eis.ucsc.edu/StarCraftAICompetition