Gridlock with laravel

This is a simple Laravel application created with its built-in solution Sail for running your Laravel project using Docker.

Requirements for building and running the application

Application Build and Run

After cloning the repository get into the root directory and run:

composer install

cp .env.example .env

./vendor/bin/sail up

Then finally test the application

In order to test the aplication, first you need to came inside the sail-8.2/app container if you are using docker, execute:

docker ps

Once you have located the container that uses the image sail-8.2/app, copy its ID and execute the following command:

docker exec -it {{ID}} /bin/bash

Once in the container execute php artisan test and let magic flow.

Besides the required functionalities, some additional features have been added, such as the ability to move blocks, also tested in the unit test block.

Observations

  • The Board class has been created and its size has been limited to more accurately adapt to the original game. Additionally, Board contains a matrix that represents the game squares to more efficiently calculate collisions and avoid the need to evaluate each block one by one.

Laravel Logo

Build Status Total Downloads Latest Stable Version License