https://github.com/kanishk1420/tic-tac-toe
Basic Tic Tac toe game
https://github.com/kanishk1420/tic-tac-toe
javascript tic-tac-toe
Last synced: 3 months ago
JSON representation
Basic Tic Tac toe game
- Host: GitHub
- URL: https://github.com/kanishk1420/tic-tac-toe
- Owner: Kanishk1420
- Created: 2024-08-03T20:42:22.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-01T21:33:48.000Z (10 months ago)
- Last Synced: 2025-01-28T05:17:18.254Z (5 months ago)
- Topics: javascript, tic-tac-toe
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe
Basic Tic Tac toe game
Currently i only made skeleton of it i will add the more designing and more good features while learning react
things are slow but in good way!
# The Board:
Tic-Tac-Toe is played on a 3x3 grid (though some brave souls venture into 4x4 territory).
Each square represents a potential move.
Players and Symbols:
You’re either X or O.
Players take turns placing their symbols in empty squares.
Objective:
The goal? Get three of your marks in a row—horizontally, vertically, or diagonally.
When you achieve this, you’re the winner!
Gameplay:
Player 1 (let’s say it’s you) places an X or an O in an empty square.
Player 2 (your opponent) takes their turn.
Keep alternating until someone wins or all squares are filled.
Winning:
If you manage to create a row of three of your symbols, you win!
It can be a straight line (up, down, or across) or a diagonal.
Blocking and Strategizing:
If your opponent is about to win, block them!
Simultaneously, focus on creating your own winning row.
The Center Square:
If you go first, claim the center square—it’s the best move.
Why? It maximizes your chances of winning.
Optimal Play:
With perfect play from both sides, Tic-Tac-Toe ends in a draw.
But hey, that won’t stop us from trying to outwit each other!