Gaming Concept Design for a Fast Playing Tic-Tac-Toe Using Python Coding

Authors

  • K.N. Vijaykuma
  • Suhasini V.K.
  • Praveen N.
  • Chitaraj Karan
  • Harsh Raj Karan
  • Abhijith Jayarajendra Nayak
  • Khushi
  • H.V. Manjunath
  • Adithya T.G.
  • Pavithra G.
  • Sindhu Sree M.
  • T.C.Manjunath

Keywords:

App, Inventory, Management, Python, Software

Abstract

In this article, we demonstrate how to implement the game of tic-tac-toe using the Python programming language. Tic-Tac-Toe is a game for two players that is played on a 3 by 3 grid. Each participant is assigned a special symbol (an X or an O) to denote the space that needs to be filled. The winner of the round is the first player to fill a horizontal, vertical, or diagonal row on the board with only their symbols. This work proposes a successful Tic-Tac-Toe strategy and was built in Python using Pygame on a Jupyter Notebook. This algorithm is designed to behave like a player while the computer maximizes the chances of victory by behaving intelligently. The goal of this work is to create a Tic-Tac-Toe strategy in which the game ends in a draw if no player chose the best positions that would have boosted their chances of winning and continues until one player wins. The work displayed here is a mini-project completed by second-semester students in the electronics and communication engineering program at Bangalore's Dayananda Sagar College of Engineering.

Published

2022-11-10

Issue

Section

Articles