Skip to content

kraffcho/Tic-Tac-Toe-Wolf-vs-Pig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe: Wolf vs. Pig 🐺🐷

Overview

This interactive Tic-Tac-Toe game pits a wolf against a pig in a classic battle of wits. With randomized computer moves, dynamic winner and loser messages, local storage for keeping score, and audio effects, the game offers a fun, engaging experience. Includes easy reset and progressive win tracking. Customizable audio and slick UI.


Table of Contents


Features

  • Randomized Computer Moves: Adds unpredictability to the game.
  • Dynamic Messages: Showcases different messages for winner and loser.
  • Local Storage: Keeps track of player and computer wins even after you close the tab.
  • Audio Effects: Adds an immersive experience.
  • Responsive UI: Aesthetic and user-friendly interface.
  • Progress Bar: Keep track of each player's progress with an interactive progress bar that fills up as you or the computer win rounds. The progress bar helps give a visual indication of the state of the game and how close each competitor is to total dominance.

Installation

  1. Clone this repository:
git clone https://github.com/kraffcho/Tic-Tac-Toe-Wolf-vs-Pig.git
  1. Navigate to the project directory:
cd Tic-Tac-Toe-Wolf-vs-Pig
  1. Install dependencies:
npm install
  1. Run the project:
npm start

Usage

To play the game, click on the grid to place your symbol. The computer's turn will automatically follow.

To start a new game, click the "New Game" button that appears after each game is finished.

If you want to reset the score record, simply click the "Score Board".


Contribute

If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.


License

MIT © Stoyan Kostadinov

About

This interactive Tic-Tac-Toe game pits a wolf against a pig in a classic battle of wits. With randomized computer moves, dynamic winner and loser messages, local storage for keeping score, and audio effects, the game offers a fun, engaging experience. Includes easy reset and progressive win tracking. Customizable audio and slick UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors