This project is an Angular application that validates Sudoku puzzles. It allows users to input a Sudoku puzzle and checks if the puzzle adheres to the rules of Sudoku.
https://www.loom.com/share/e530e6f888424d8293872a2bfd2cf8dd
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Node.js and npm.
- You have installed Angular CLI. If not, install it globally on your machine by using the following command:
npm install -g @angular/cli
- Sudoku input component
- Sudoku validation function
- User-friendly interface
- Handles edge cases such as empty cells or invalid input
- Unit tests and end-to-end tests
The Sudoku puzzle validation is based on the following rules:
- Each row must contain the numbers 1 to 9, without repetition.
- Each column must contain the numbers 1 to 9, without repetition.
- Each of the nine 3x3 subgrids must contain the numbers 1 to 9, without repetition.
To get started with the project, follow the instructions below:
- Clone the repository
git clone https://github.com/sunnyDev93/sudoku-validator.git
- Navigate into the project directory
cd sudoku-validator
- Install the dependencies
npm install
- Run the application
ng serve
The application will be available at http://localhost:4200
.
This project includes unit tests and end-to-end tests. To run the tests, use the following commands:
- Run unit tests
ng test
- Run end-to-end tests
ng e2e