shreyamalogi / XOXO-game

๐Ÿค–๐Ÿ”ฅ Battle Wits Against the AI in the Ultimate XOXO Showdown!"

Home Page:https://shreyamalogi.github.io/XOXO-game/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XOXO Game ๐ŸŽฎ

Welcome to the XOXO Game - a classic tic-tac-toe experience (XOXO) game.

GitHub stars

Game Details: ๐Ÿ•น๏ธ๐ŸŽฒ๐Ÿ“…

  • Functionality: Play tic-tac-toe against AI (Artificial Intelligence) single-player mode.
  • Tech Stack: HTML, CSS, JavaScript , Bootstrap, Font Awesome, jQuery, AI (minimax algorithm for computer opponent)
  • Author: @shreyamalogi
  • Year of Creation: 2020
  • View the Project Here https://shreyamalogi.github.io/XOXO-game/

Table of Contents

Introduction

This project is a web-based Tic-Tac-Toe game developed by Shreya Malogi. It allows players ๐ŸŽฎ to compete against AI ๐Ÿค– and enjoy a classic game of XOXO. ๐ŸŒ๐ŸŽฎ

Challenge 1: Game Logic ๐ŸŽฎ

Challenge: Implementing Tic-Tac-Toe logic, ensuring valid moves and determining wins or ties.

Solution: Shreya's research and step-by-step approach effectively crafted the core game functionality.

Challenge 2: AI Opponent ๐Ÿค–

Challenge: Creating a challenging AI opponent with strategic moves.

Solution: Shreya implemented the minimax algorithm, elevating the game's excitement.

Challenge 3: Testing ๐Ÿงช

Challenge: Rigorous testing for a bug-free and functional game.

Solution: Shreya's thorough testing and user feedback refined the game for a smooth experience.

Features

  • Choose Your Symbol ๐Ÿ’ก: Play as either 'X' or 'O'.
  • Interactive UI ๐ŸŽจ: Enjoy a user-friendly and visually appealing game interface.
  • Player vs. Computer ๐Ÿค–: Test your skills against an AI opponent.
  • Scoreboard ๐Ÿ†: Keep track of your wins and losses.
  • Responsive Design ๐Ÿ“ฑ: Play the game on various devices with ease.

How to Play: ๐ŸŽฎ๐Ÿ•น๏ธ

  1. Open the index.html file in your preferred web browser.
  2. Player 1 selects their symbol by clicking on โŒ or โญ•.
  3. The game begins, and players take turns making moves.
  4. If playing against the computer, watch out for its strategic moves!
  5. Continue until a player wins or the game ends in a tie.
  6. Scores are displayed on the right, and game status is shown at the bottom.
  7. To start a new game, click the โ™ป๏ธ icon in the top-right corner.

Game Rules: ๐Ÿ“œ๐ŸŽฒ

  • Follows standard tic-tac-toe rules. ๐Ÿ”„๐Ÿ•น๏ธ
  • Achieve three in a row horizontally, vertically, or diagonally to win. ๐Ÿ†๐Ÿ”ข
  • A tie occurs if all cells are filled with no winner. ๐Ÿค๐Ÿšซ

Getting Started

To run the XOXO Game locally on your machine, follow these detailed steps:

  1. Clone the Repository:

    • Open your terminal.
    • Run the command: git clone https://github.com/shreyamalogi/XOXO-game.git.
  2. Open the Game:

    • Navigate to the cloned directory using: cd XOXO-game.
    • Find and open the index.html file in your preferred web browser.

Now you can enjoy the XOXO Game on your local machine!

Alternatively, you can play the game online at web app or GitHub Pages. ๐ŸŒ๐ŸŽฎ

Contribution - Cast Your Star! โญ๐ŸŒŸโœจ

Feel the enchantment? Contribute to this magical adventure and make it even more spellbinding. Don't forget to star the project! โญ๐ŸŒŸ

License: ๐Ÿ•Š๏ธ๐Ÿ“˜

This magical creation is licensed under the spell of the MIT License. Share the magic responsibly!

MIT License

Copyright (c) 2020 Shreya Malogi

Stay Enchanted! ๐ŸŒ๐Ÿ’™

About

๐Ÿค–๐Ÿ”ฅ Battle Wits Against the AI in the Ultimate XOXO Showdown!"

https://shreyamalogi.github.io/XOXO-game/

License:MIT License


Languages

Language:JavaScript 60.5%Language:CSS 28.1%Language:HTML 11.3%