Two computers duke it out on Pong |
Ó
Bored of playing Pong all by yourself with nobody around for you to play with? Why not let two computers compete in Pong?
Ashish Derhgawen thought of the idea after he saw someone's elaborate image-recognition setup that lets two laptops play a WTF: Work Time Fun minigame on his PSP, which involves a webcam taped to the screen on the PlayStation Portable, and a motor hammering at the PSP's 'X' button.
The programmer, who created his own version of the Pong game in his earlier days, created a similar setup using his webcam to detect Pong movements on one of his two PCs using edge detection to better sense the ball and bat.
Edge detection is used to 'see' the edges of the shapes in the Pong screen to differentiate the ball from the bat, and sends the data to the other computer so it could react appropriately in order to move the bat and hit the ball.
He then created a code for image recognition and wrote a TCP client/server program for the two computers to communicate and square off against each other at Pong. Ashish also thought of using a simple motor to hit at the keys, much like the Work Time Fun setup, but deemed it to be needlessly complicated when the TCP client/server would serve the same purpose.
It may be an complex way of letting computers play with each other (there's always a COM vs. COM mode in most fighting games) but hey, the most fun about this project is in setting it up, don't you think?
Contact Us:
The QJ.net Network |
|
| Site | Feed |
| QJ.NET | RSS |
| Nintendo DS | RSS |
| PlayStation 3 | RSS |
| PSP Updates | RSS |
| Wii | RSS |
| Xbox 360 | RSS |
| MMORPG | RSS |
| Personal Computer Games | RSS |
| iPhone - iPod Touch | RSS |
| QJ.NET Forums | RSS |
User Favorites - December
User Favorites - December
Categories
Archives
Accessories
Artwork
Betas, Testing
Deals
Demo
Drivers
Events
Featured Articles
Genre
Guides, Tips, and Tricks
Hardware
Humor
Interviews
Lore
Mods
News
Off Topic
On Shelves This Week
Opinions & Analysis
Patches
Previews
Reviews
Rumors
Scans
Screenshots
Site News
Steam
Titles
Utilities
Videos
Windows Live
XNA Studio Homebrew
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006

