1. Computing & Technology

Discuss in my forum

Tic Tac Toe Entry Contest Review for Jim McKeeth

About.com Rating 4 Star Rating
Be the first to write a review

By , About.com Guide

TTT Entry by Jim McKeeth

TTT Entry by Jim McKeeth

The Bottom Line

Jim has done a great work of creating a special purpose class to support the game. The class derives from TGraphicsControl and knows how to “draw” the board and the moves.

Pros

  • Implemented a learning expert system
  • Has 5 levels of computer AI
  • Enables computer vs. computer game

Cons

  • GUI could be better
  • No game results history

Description

  • Game field is drawn on a TPanel, using user-defined class that derives from TGraphicsControl.
  • GUI is unfortunately not too creative.
  • Could serve a starting point for beginners interested in threading, interfaces, and OOP in general.

Guide Review - Tic Tac Toe Entry Contest Review for Jim McKeeth

Jim successfully implemented a Tic-Tac-Toe learning expert system. In the beginning the AI does not know how to win a game, but it knows how to play. As it plays it learns what are winning moves and what are loosing moves. The source of the game even includes implementing an (user defined) interface and other elements of OOP - great job.

©2012 About.com. All rights reserved.

A part of The New York Times Company.