https://www.liquidpoker.net/


LP international Poland    Contact            Users: 534 Active, 1 Logged in - Time: 05:25

Perfect Pong

New to LiquidPoker? Register here for free!
Forum Index > Poker Blogs
Floofy   Canada. Mar 03 2012 01:13. Posts 8708
Even thought you guys seems to be ignoring my blog since i've started talking about game programming instead of girls, i'll post anyways.

I just programmed a pong game, but whats interesting about it is, i programmed 2 AIs for the computers.

The first one, called "Basic" just follows the ball around. Super effective while its as fast as the ball, but quickly gets useless.

The second one, called "Perfect", right after hitting the ball instantly calculate where the next ball will be, and goes there and wait.

needless to say the second AI is very difficult to beat.

The game allows you to customize your game. Right now you have the following options:
Ennemy size and AI
Ally size and AI (yes you can have a computer to help you)
Your size
Helping walls size (you can have small walls in the back. they doesnt move but they can be usefull)

Even by giving myself a super big handicap (i get helping walls, a basic ally with 150 size, myself with 100 size, ennemy with just 30 size with 0 help), the AI is still near unbeatable.

Even thought this game isn't the most fun thing ever, i am happy i programmed a perfect AI for a "real time" game. Next i might try to make some sort of 2d shooting game (maybe tanks or something). Any idea is welcome.


http://www.filedropper.com/pong_1

Note: Beginning screens offer you the options. The default option is good and shows how good the perfect AI is. If you want to mess around with it do it, but don't do stupid things such as entering letters, or negative values, or stupidly high values (the screen is 350 wide, so no need to put anything bigger than 350) things like that will make the program crash (no big deal, it will just tell you there was an error and it close, i tested it )

However you can put "0" in an option if you want to remove it.

0 votes
Facebook Twitter
james9994: make note dont play against floofy, ;(Last edit: 03/03/2012 10:59

MeProOk   Bulgaria. Mar 03 2012 06:11. Posts 246

So, any link or something?


SolarM   Germany. Mar 03 2012 09:26. Posts 533

Okay i will try to Download this.


Floofy   Canada. Mar 03 2012 10:51. Posts 8708

Ok added the link

If you dl it and it works please give some feedback.

I had the idea of making it have a bunch of balls, but i wasn't too sure and a perfect AI woulld be harder to program I think i might attempt to do some sort of pong rpg, where after each levels you get to "ugrade your team", but that would be nicer in flash.

james9994: make note dont play against floofy, ;(Last edit: 03/03/2012 11:10

 



Poker Streams

















Copyright © 2024. LiquidPoker.net All Rights Reserved
Contact Advertise Sitemap