Code Monkey home page Code Monkey logo

racing-game's Introduction

Racing Game

Welcome to the Racing Game project! This simple PHP console-based game allows two players to race against each other using different vehicles.

Features

  • 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.

Dependencies

This project uses the following packages:

Deployment Considerations

During deployment, please ensure the following:

  • PHP version 8.0 or higher is installed on the server.
  • Composer is installed to manage project dependencies.

How to Run

Manual Execution

  1. Clone the repository:

    git clone https://github.com/mohaphez/racing-game.git
  2. Navigate to the project directory:

    cd racing-game
  3. Install dependencies using Composer:

    composer install
  4. Run the game:

    php src/index.php

Dockerized Execution

  1. Ensure Docker is installed on your machine.

  2. Clone the repository:

    git clone https://github.com/mohaphez/racing-game.git
  3. Navigate to the project directory:

    cd racing-game
  4. Build the Docker image:

    docker build -t racing-game .
  5. Run the Docker container:

    docker run -it racing-game

Gameplay

  • 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.

racing-game's People

Contributors

mohaphez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.