Unbeatable PONG through Artificial Intelligence
CSEF · 2011 Mathematics & Software
Overview
Objectives/Goals Since the dawn of the industrial revolution machines have worked side by side with humans, but they have not always been able to reason out and overcome human inconsistencies. The goal of this project was to make an artificially intelligent computer program to play the novel game, PONG. The computer program mimicked human thought processes, and its programmed speed and efficiency was tested against humans. My null hypothesis was that there would be no difference in the success of a computer controlled paddle and a human controlled paddle while playing the PONG game. Methods/Materials Three programs of PONG were written to determine the successes of both humans and a computer program while playing PONG. Human vs. wall and computer vs. wall games were used to gather baseline data, and a human vs. computer game was designed to compare relative successes in an actual competition. The computer used a modified slope-intercept equation to predict where the ball would intercept the wall, and moved its paddle to the point of intersection. The number of successful hits by each player was divided by the total number of possible hits; this rendered a percentage of successful hits and rates of success. I used the baseline tests as controls to compare to the results from the human versus computer game. These programs were written using Microsoft Visual C# Studio. Results All computer trials, both against a wall and against a human opponent, obtained a 100 percent success rate. Human success rates ranged from 62 to 85 percent in both the baseline tests and the actual game, with an overall average success rate of 73 percent. Conclusions/Discussion The null hypothesis that there would be no difference in the success rate of a computer programmed paddle versus a human controlled paddle while playing PONG was rejected (P < .001). The computer was significantly more successful than humans while playing PONG. My results demonstrated how a computer or machine can be programmed to carry out human tasks much more efficiently than a human. The results also demonstrate how computers can react logically and more efficiently than humans. The results also show that the use of computers to calculate predictions could easily be expanded to be used in assembly lines with on the fly adjustments and self troubleshooting capabilities to minimize the effects due to human error.
Summary statement
I wrote artificially intelligent computer programs to test against humans.
Competition history
- CSEF 2011
Resources
Related projects
CSEF · 2011
Artificial Intelligence: Modeling with Tic-Tac-Toe
CSEF · 2012
Computer vs. Human: Exploring AI in the Game Blokus
CSEF · 2012
GoAI: Creating an Artificial Intelligence to Play Go
CSEF · 2012
Artificial Intelligence: Teaching a Computer to Play Tic-Tac-Toe
CSEF · 2003
Creating a Tic Tac Toe Computer Program
CSEF · 2014
Constructing an Adaptive Blackjack Computer Program to Self-Improve Itself Based on Previous Performance
CSEF · 2010
A. I. Connect-Four
CSEF · 2008
Robots: Are They Better than Us?
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects