Pegs and Programming
CSEF · 2016 Mathematics & Computer Science
Overview
Objectives/Goals The objective of my project was to write a computer program that models peg solitaire. I wanted to make the program learn to get better at the game over time. Methods/Materials Laptop computer with Snap! programming language, which is based on Scratch. I wrote a program using Snap! that models peg solitaire and learns through trial and error, then tested it to see if it improved. Results My program was very successful at learning to get better at peg solitaire. There was a substantial increase from its starting win percentage to its win percentage after testing it with the learning software. Conclusions/Discussion I built a software model of peg solitaire that successfully learns through trial and error to get better at the game. After many trials, the program performed better than it did initially. Since it was improving, my program is proved to be working.
Summary statement
I wrote an effective computer program that models peg solitaire and learns to improve.
Help received
I designed and built the program myself after an overview from my father, a computer scientist, on his programming process.
Competition history
- CSEF 2016
Resources
Related projects
CSEF · 2011
Unbeatable PONG through Artificial Intelligence
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 · 2012
Computer vs. Human: Exploring AI in the Game Blokus
CSEF · 2005
A Wheel Goes Far!
CSEF · 2011
Artificial Intelligence: Modeling with Tic-Tac-Toe
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects