clively79 / Tic-Tac-Toe

A simple Tic-Tac-Toe program, created to exercise some fundamental Python concepts.
GNU General Public License v3.0
0 stars 0 forks source link

Change Log #4

Open clively79 opened 3 years ago

clively79 commented 3 years ago

Major changes will be described here

clively79 commented 3 years ago

Menu bar has been added, only file menu is setup, file menu contains New Game and Close option with accelerators.

Ctrl+X closes the program Ctrl+N creates a new game at any time

Game canvas has been resized to correct the issue of clicking on the outer edge and calculating the wrong r, c value or out of bound.

Selecting a square no longer uses Gif images to display X's and O's. Now X's and O's are drawn using create_line and create_oval methods, and the event.x and event.y is used to calculate the row and column value programmatically, reducing the number of conditional checks and result in fewer lines of code.

TODO:

create a single player, or Human v. Computer mode.