Skip to content

A simple Tic Tac Toe game implemented in JavaScript and Python Flask, featuring two-player and vs. computer modes.

License

Notifications You must be signed in to change notification settings

BaranDev/Tic-Tac-Toe-with-Javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

This repository contains a simple Tic Tac Toe game implemented in JavaScript and a Flask web application to serve the game.

Instructions

JavaScript Implementation (script.js)

  1. Getting Started: To start playing the game, open index.html in a web browser.

  2. Game Modes:

    • Two Player Mode: Click on the "Two Players" button to start a game where two players can play against each other.
    • Vs. Computer Mode: Click on the "Vs. Computer" button to play against the computer.
  3. Gameplay:

    • Click on any empty cell to make your move.
    • The game alternates between 'X' and 'O'.
    • The game will notify you when someone wins or if it's a draw.
    • Click on the "Reset" button to restart the game at any time.
    • Click on the "Back" button to return to the main menu.

Python Flask Web Application (main.py)

  1. Running the Application:

    • Ensure you have Python installed on your system.
    • Install the required dependencies using pip install -r requirements.txt.
    • Run the Flask application using python main.py.
  2. Accessing the Game:

    • Once the Flask application is running, navigate to http://localhost:8080 in your web browser to play the Tic Tac Toe game.

GitHub language count GitHub repo size License GitHub issues GitHub pull requests GitHub stars GitHub forks

About

A simple Tic Tac Toe game implemented in JavaScript and Python Flask, featuring two-player and vs. computer modes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published