Qbasicnews.com

Full Version: Pong AI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Quote:Cool. Here's mine. I made it last night, and ran it for 4 hours and nobody scored! cool?

I wouldnt say thats cool. Pong is a bad way of showing AI.

There is no skill in moving to where the ball is going to be.
No, not the program. what the program did, it could run forever and never score. Besides, cool is an opinion, not fact.
Hey, that's what mine did....so I added a timeout (javascript term)....

hmmm....I like my first one the best of all three....mabey I'll make that into a game when I get older.... Big Grin

Seriously....I got now 2 cores that I abandoned that are good, just never finished....Break out, and now pong!! heh...
^_^ Make the AI non perfect, make it slip up some times, now that be a challange... I might try one, but I got some things to do... :wink:
No absolutely not! Big Grin

It is NOT difficult to do that! And can we stop saying AI cause its not one...its call a bot!

Here's what you do: Make a perfect AI.
Generate a random number everytime it does a move.
Now make a porbality table....lets say we have a number from 1 to 100.

Think:
If the number is from 1 to 100 then do right move.
If number is not then don't
That would be 100% right moves and it would be a nonmistake bot.

Now do this:
If the number is from 1 to 90 then do right move.
If it is from 91 to 100 then do a random move.
Now your bot is a little less "smart" or less perfect (a factor of 10% so)

And this:
If the number is from 1 to 30 then do right move
If it is from 31 to 100 then do a random move.
Now your bot has the IQ of a 2 year old. (Factor of 30% smartness)

And then you got the rock IQ:
If the number isn't from 1 to 100 then do right move
If the number is from 1 to 100 then do random move....lol :lol:

So that way is easy. Now if you want'd to program in each individual variation depending on the circumstance you could but I like this expessially for makeing less "smart" bots. :wink:
Quote:^_^ Make the AI non perfect, make it slip up some times, now that be a challange... I might try one, but I got some things to do... :wink:

I like that idea Rattrap, that is far more challenging Smile

Anonymous

but really... if you think about what youre saying, youre saying that it would be a challenge to make something that has flaws. mitth' pointed it out already, all youd have to do is make it random, or to be redundant, randomly random.

so would that really be the challenge? or would the challenge be to make the slip ups seem as "life-like" as possible? perhaps the only way to do that would be to watch a lot of people play pong and analyze which angles give more people prblems or whatever.
Quote:hey! No you wern't clear...but hey! no worries:
Here's my modified entry: Big Grin

your entry flashes a lot and the blocks keep vanishing.
Quote:so would that really be the challenge? or would the challenge be to make the slip ups seem as "life-like" as possible? perhaps the only way to do that would be to watch a lot of people play pong and analyze which angles give more people prblems or whatever.

Thats what I meant. Emulate human error, to give a more fun game.

The thing is, with pong it is far too easy to make perfect AI. Just make the paddle Y position equal to the ball y position.
Smile What Mitth said was to make a randomize timer, that would not make a life like mistake, it be the paddle dashing this way and that... not what I ment...

I ment, what do ppl do in a stessful situation? they freeze up, their reaction time slows, or some times they misjudge too leaving them to over or undershot the block.. have it simulate effects like that.. :wink: That really would raise the challenge... Smile
Pages: 1 2 3 4 5