This is a simple Tic Tac Toe game implemented in Laravel, Livewire with Volt and Reverb. The game allows two players to take turns marking spaces on a 3x3 grid until one of them wins or the game ends in a draw. It allows players to play against each other in real-time.
tic-tac-toe-game-demo.mp4
- PHP 8.3+
- Laravel 12
- Livewire 3
- Reverb
- Tailwind CSS
To run this project, you need to have PHP and Composer installed on your environment.
- Clone the repository:
git clone https://github.com/lauroguedes/tic-tac-toe-game.git- Navigate to the project directory:
cd tic-tac-toe-game- Install the project dependencies using Composer:
composer install- Install the project dependencies using NPM:
npm install- Copy the
.env.examplefile to.env:
cp .env.example .env- Generate an application key:
php artisan key:generate- Run the reverb installation command:
php artisan reverb:install- Start the Reverb server:
php artisan reverb:start- Start the front end server:
npm run dev- Start the development server:
php artisan serve- Open your web browser and visit
http://localhostto access the Tic Tac Toe game.