Welcome to the Racing Game project! This simple PHP console-based game allows two players to race against each other using different vehicles.
- Choose vehicles from a predefined list.
- Race simulation with progress bars for each player.
- Determine the winner based on the first player to complete the race.
This project uses the following packages:
- PHP CLI Tools (php-cli-tools): A collection of tools for PHP command-line applications.
During deployment, please ensure the following:
- PHP version 8.0 or higher is installed on the server.
- Composer is installed to manage project dependencies.
-
Clone the repository:
git clone https://github.com/mohaphez/racing-game.git
-
Navigate to the project directory:
cd racing-game
-
Install dependencies using Composer:
composer install
-
Run the game:
php src/index.php
-
Ensure Docker is installed on your machine.
-
Clone the repository:
git clone https://github.com/mohaphez/racing-game.git
-
Navigate to the project directory:
cd racing-game
-
Build the Docker image:
docker build -t racing-game .
-
Run the Docker container:
docker run -it racing-game
- Players will be prompted to choose a vehicle from the available options.
- The game will simulate the race, displaying progress bars for each player.
- The winner will be declared once a player completes the race.