This is a simple web-based Tic Tac Toe game built with Angular. It allows two players to take turns placing their marks (X or O) on a 3x3 grid, with the objective of getting three of their marks in a row, column, or diagonal.
You can view a live demo at https://ta-te-ti-mp.web.app
- Classic Tic Tac Toe gameplay.
- Responsive design, playable on both desktop and mobile devices.
- Real-time feedback on game status (current player's turn, winner, or draw).
- New Game button to start a new game at any time.
- Angular: A popular JavaScript framework for building web applications.
- HTML/CSS: For structuring and styling the user interface.
- TypeScript: A superset of JavaScript that adds optional static typing.
To run the Tic Tac Toe game locally or contribute to the project, follow these steps:
- Clone the repository to your local machine using Git:
git clone https://github.com/mp182/tic-tac-toe.git
- Navigate to the project directory:
cd tic-tac-toe
- Install the necessary dependencies using npm:
npm install
- Start the development server:
npm start
- Open your web browser and visit
http://localhost:4200to play the game.
- The game starts with Player 1 (X) making the first move.
- Players take turns placing their marks (X or O) on empty squares by clicking on them.
- The game ends when one player gets three of their marks in a row, column, or diagonal, or when the board is full (draw).
- Click the New Game button to start a new game at any time.
Contributions to the Tic Tac Toe project are welcome! If you find any bugs, have suggestions for improvements, or want to add new features, feel free to open an issue or submit a pull request. Please follow the project's code of conduct.
This project is licensed under the MIT License - see the LICENSE file for details.
- This project was inspired by the classic Tic Tac Toe game.
- Special thanks to the Angular team for providing an excellent framework for building web applications.