Skip to content

A ranked rock paper scissor game using Laravel, VueJS and Websocket

License

Notifications You must be signed in to change notification settings

deivao06/ranked-paper-scissor

Repository files navigation

Ranked Paper Scissor

A open-source ranked rock paper scissor game using Laravel, VueJS and Websocket

Screenshots

alt text alt text

Running on Localhost

Install Composer dependencies:

  composer install

Install NPM dependencies:

  npm install

Run NPM in dev mode:

  npm run dev

Run laravel migrations:

  php artisan migrate

Run laravel artisan local server:

  php artisan serve

Tip: If you want to run a server on your local network to test the websocket functionality, run it using the following command:

  php artisan serve --host 0.0.0.0 --port {any port that you want (without the brackets)}

With this command any browser using the same network as you will be able to access the project using http://youripv4addres:port

You will have to change websocket url in front-end too.

Finally run the websocket server:

  php artisan run:websocket

This command will run the websocket server in port 5050.

TODO

  • User login
  • User registration
  • Online normal game matchmaking
  • Base game mechanics
  • User game history
  • Online ranked game matchmaking
  • User ranked points (used to balance ranked matchmaking)
  • Leaderboard
  • Custom game creation
  • User games info (total games, total wins, total loses)
  • User friend system (maybe?)

Programming language versions

PHP: 7.4.29

Laravel Framework: 8.83.26

License

MIT

About

A ranked rock paper scissor game using Laravel, VueJS and Websocket

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published