Python Forum
Tkinter Tic Tac Toe With Enhanced Features - Completed - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: Code sharing (https://python-forum.io/forum-5.html)
+--- Thread: Tkinter Tic Tac Toe With Enhanced Features - Completed (/thread-23072.html)



Tkinter Tic Tac Toe With Enhanced Features - Completed - adt - Dec-10-2019

My first python project, an advanced version of Tic Tac Toe on Tkinter, incorporating enhanced features, can be downloaded at the following link:
Tkinter Tic Tac Toe-MulltiBoard Variable Strength

I would be thankful if members of this forum could kindly try it out and let me know regarding any aspects needing attention or improvement.

Some of the features incorporated in this version, are listed below:
1 – Option for multiple board sizes (say 3x3, 4x4, 5x5, 6x6, 7x7 & 8x8).

2 – Option for varying difficulty levels (i.e. computer strength) as follows – (options: 0 / 1 / 2, with default Level as 1):
Level 0 - Computer plays random moves and discontinues blocking opponents victory, after 50% slots get filled up
Level 1 - Computer plays optimum moves but discontinues blocking opponents victory, after 70% slots get filled up
Level 2 - Computer plays at full strength as follows:
(a) Firstly, go for immediate win if available.
(b) Otherwise, block opponent if on the verge of immediate win.
© Otherwise, pick up a move from shortest winning path available.

3 – Option to display running score. Apart from overall totals, the break up for selected board sizes & difficulty levels is also displayed (tot games, player wins, computer wins & draws).

4 – On computer’s move, there is brief blinking of destination slot. This can be a convenience as the board size gets larger.

5 – Option to start a fresh game when desired.

6 – Detect stalemate if a winning combination is no longer feasible for either player & announce the game as drawn, even though empty slots are still available. This can be a convenience as the board size gets larger.

7 – Overall space occupied by play board remains constant. The size of individual play buttons gets adjusted accordingly as per the number of rows x columns selected.



RE: Tkinter Tic Tac Toe With Enhanced Features - Completed - michael1789 - Dec-10-2019

Nice little program. Reminds me of a game from a Windows 3.11 entertainment pack I had back in the day... except this didn't freeze my machine!

Who else remembers "Ski Free"? lol


RE: Tkinter Tic Tac Toe With Enhanced Features - Completed - adt - Dec-10-2019

(Dec-10-2019, 06:07 AM)michael1789 Wrote: Nice little program.

Glad you liked it. Thanks for kindly trying it out.