Skip to content

ecoactitude/ecoactitude-memory-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

livewire-memory-game

PHP Laravel Livewire Alpine.js SQLite NPM MIT Licensed

Source code for Eco-Actitude Memory Quest.

Game content:

game.png

Rules

success.gif error.gif
🟢 If the two cards are the same, then you win 10+5 points. 🔴 If the two cards are different, then you lose 1 point and the number of Attempts increases.

Scoring

  • a combo is a pair of cards found in a row
  • 10 points for each pair found + 5 points for each combo cumulated
  • -1 point for each pair not found if the score is less than 10
  • -10% of the score for each pair not found if the score is greater than 10

Combos bonus

Combo Combo
🟢 If you find a pair of cards in a row, you win 10+5*{combos} points.

violet | rond blanc | carré dans vert | rond blanc diff | rond blanc diff | carré blanc pot stylo vert | violet | lessive | rond blanc | carré blanc pot | savon violet savon violet | jardin suspendu | jardin suspendu | stylo vert | carré vert | lessive

Screenshots

Dashboard

dashboard.jpg

BACK-END INSTALL

Requirement

You will need to have the following installed:

To install the back-end vendors, launch the following command:

cd project
composer install

.env file

The .env file is mandatory to set up the site. The file should be located in the root of the project. Copy the .env.example file and rename it to .env.

Cache

To clear the cache, run the following command:

sh scripts/refresh_cache.sh

Database

To create the database, run the following command:

php artisan migrate

Seed

To seed the database, run the following command:

php artisan db:seed

Livewire

To publish the Livewire assets, run the following command:

php artisan livewire:publish --assets

FRONT-END INSTALL

Requirement

You will need to have the following installed:

To compile the front-end assets, launch the following command to install the dependencies:

npm run development

Or, for minified assets:

npm run production

You should now see two new files within your projexts public folder:

  • .public/css/app.min.css
  • .public/js/app.min.js

To watch for changes, run the following command:

npm run start

Releases

No releases published

Packages

No packages published