ECE 2524

Introduction to Unix for Engineers

Tic-Tac-Toe Review

Usage

The Tic-Tac-Toe project had very straight forward instructions and was easy to run since it was a python file. After cloning the project, I simply followed the README file and ran:

    $ python game.py

and the main menu of the game was displayed. I was then prompted to enter the game mode, which consisted of either one or two players. When playing one player, the cpu actually did a really good job and managed to make the games a draw the majority of the time.

I only managed to find one bug while playing. The program would sometimes display True or False in two player mode, and I could not figure out what this meant, so I assumed it was used for debugging purposes and was forgotten about. Another problem I noticed, which was not really a bug, but just something I thought would be nice to add is exception handling. The program would just crash if an incorrect input was given. Other than these two issues the game ran extremely smoothly.

Style

The code itself was well organized and the comments were extremely helpful. The game consisted of only two python files which made the logic extremely easy to follow. When displaying the title of the game, the programmers decided to use ASCII art to give it almost a bubble letter effect, which I though was a very nice touch. I believe the style of the game was excellent.

Philosophy

This game managed to incorporate the Unix design philosophy of using a thin layer of glue. This was achieved by creating only two python files to keep the GUI and logic separate. The output of the program was also clean, precise, and never redundant.