/Box-Move

A simple UI to move boxes in a grid using keyboard buttons usingAngular

Primary LanguageTypeScript

BoxMove

This project was generated with Angular CLI version 9.0.7.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Functionalities:

  1. One can add one or more boxes with unique ID using the "Add Boxes" button.
  2. One can select a box on clicking it.
  3. One can delete a box either by clicking on the "Remove Boxes" button or by pressing "Delete" button on keyboard, after selecting the box to delete.
  4. One can move a box by WASD or arrow keys after selecting a box.
  5. One can disable the keyboard keys by clicking on the "Disable listener" button.

Note:

This is a matrix with a hard-coded value of 9 boxes.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.