eslamabdallah74 / lottery-game

Number Guessing Game This is a simple web application built using the Laravel Livewire library. It allows users to play a number guessing game where they have to select a number from a list of 10 random numbers and try to guess the correct number. The game has the following features:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lottery Game

This is a simple lottery game built with Laravel Livewire. The game generates a list of 10 random numbers between 1 and 100 and the user has to choose one of the numbers. If the selected number is equal to the correct number, the user wins the game.

Project Image

Languages and Tools Used

PHP Laravel Livewire HTML CSS

Installation

To install this project, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/your-username/lottery-game.git
  1. Navigate into the project directory:
cd lottery-game
  1. Install dependencies:
composer install
npm install && npm run dev
  1. Create a .env file by copying the example file:
cp .env.example .env
  1. Generate a new application key:
php artisan key:generate
  1. Start the development server:
php artisan serve
  1. Visit http://localhost:8000 in your web browser to see the application.

Usage

To play the lottery game, simply select one of the numbers displayed on the screen. If the number you chose matches the correct number, you win the game.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature:

git checkout -b feature/my-new-feature
  1. Make your changes and commit them:
git commit -am 'Add some feature'
  1. Push your changes to your forked repository:
git push origin feature/my-new-feature
  1. Create a new pull request from your branch to the main branch of the original repository.

License

This project is licensed under the MIT License. Feel free to use it for any purpose.

About

Number Guessing Game This is a simple web application built using the Laravel Livewire library. It allows users to play a number guessing game where they have to select a number from a list of 10 random numbers and try to guess the correct number. The game has the following features:


Languages

Language:PHP 96.0%Language:Blade 1.9%Language:CSS 1.7%Language:JavaScript 0.4%