A. I. Connect-Four
CSEF · 2010 Mathematics & Software Third Award
Overview
Objectives/Goals I am using the game Connect-Four to study artificial intelligence. I wanted to determine the effects of ply depth (the number of plies, which are turns by a single player, that the program looks ahead) and the effects of getting the first move on both the chance of winning and the time taken. Methods/Materials To do this, I wrote some computer programs in C to simulate games between computer-controlled players. Results I found that increasing the ply depth increases the chance of winning, as does getting the first move. I found that the effect of a single ply depth increase was greater than the effect of getting the first move. I found that when two identical players faced off, there would be more draws if both had even ply depths. I also found that increasing the ply depth by 1 make the program take about 7 times as long per move. Conclusions/Discussion My results agree with my hypothesis, though I did not expect the result with more draws at even ply depths. Each extra ply taking 7 times as long fits with the prediction based on branching width.
Summary statement
I created an artificial-intelligence program to play Connect-Four and used it to test the effects of going first and looking further ahead in possible moves on the chance of winning and on the time taken.
Help received
My father, Kevin Karplus, mentored me on this project.
Awards (1)
Competition history
- CSEF 2010
Resources
Related projects
CSEF · 2014
Game On: Creating a Worthy Connect Four Opponent with Heuristic Algorithms
CSEF · 2012
Computer vs. Human: Exploring AI in the Game Blokus
CSEF · 2019
Creating a Neural Network to Play the Game of Connect Four Using a Genetic Algorithm
CSEF · 2012
GoAI: Creating an Artificial Intelligence to Play Go
CSEF · 2011
Artificial Intelligence: Modeling with Tic-Tac-Toe
CSEF · 2003
Artificial Intelligence: Can a Neural Network Learn to Play Connect 4?
CSEF · 2011
Position or Piece: Computer Simulation and Study of the Strategy Board Game Blokus
CSEF · 2011
Unbeatable PONG through Artificial Intelligence
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects