top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Simple Tic-Tac-Toe Game

Writer: Ibrahim RustemovIbrahim Rustemov

Introduction:

Each of us has played this game at least once in our lives. But wait, what do you think about coding this game?

The game is played on a grid that's 3 squares by 3 squares. The first player to get 3 of her marks in a row is the winner.


First of all, lets import libraries which we need

We will use tkinter library for Graphical User Interface.

time library for time operations and choice for choosing variable randomly


We write computer estimates with the comp button function. First we look for appropriate place to put 'O' ('X')


These lines of code is for clicking to the button and checking for win or louse. If our flag rises to 8, the game is over. And because of this we call checkForWin() function again for looking for any winner.

Conclusion:

In conclusion, we create simple app for playing Tic-Tac-Toe game with the visually help of Tkinter. You can look at the whole code by click below:

 
 

1 commento


Data Insight
Data Insight
23 set 2021

Can you put some of the user interface in your post? See for instance https://www.datainsightonline.com/post/armstrong-number-checker-app

Mi piace

COURSES, PROGRAMS & CERTIFICATIONS

 

Advanced Business Analytics Specialization

Applied Data Science with Python (University of Michigan)

Data Analyst Professional Certificate (IBM)

Data Science Professional Certificate (IBM)

Data Science Specialization (John Hopkins University)

Data Science with Python Certification Training 

Data Scientist Career Path

Data Scientist Nano Degree Program

Data Scientist Program

Deep Learning Specialization

Machine Learning Course (Andrew Ng @ Stanford)

Machine Learning, Data Science and Deep Learning

Machine Learning Specialization (University of Washington)

Master Python for Data Science

Mathematics for Machine Learning (Imperial College London)

Programming with Python

Python for Everybody Specialization (University of Michigan)

Python Machine Learning Certification Training

Reinforcement Learning Specialization (University of Alberta)

Join our mailing list

Data Insight participates in affiliate programs and may sometimes get a commission through purchases made through our links without any additional cost to our visitors.

bottom of page