Skip to content

pharsfalvi/sudoku

Repository files navigation

Sudoku validator

Validates a csv file and reports an error message if it is not a valid solution for a 9x9 Sudoku game.

In case the validation is successful it exits with zero, otherwise it exits with one and shows an error on the console.

Usage

The filename parameter must be provided with an absolute path or a path relative to the destination folder of the installation.

Linux/Mac

./validate <filename> 

Windows

./validate.bat <filename> 

Build

Prerequisite: Java SE 11 (LTS)

Clone this repository, go to its location in a terminal and execute:

./gradlew build

Installation

Build the project and locate the distro files at the subfolder validate/build/distributions

Unpack the distributed package into any destination folder.

  • Linux or Mac: use the command tar xvf validate.tar
  • Windows: right-click the validate.zip file and click Extract All.

Troubleshooting

  • LinkageError: - this may happen when you build the project but execute the distribution with a different java versoin. Make sure that your JAVA_HOME and PATH is configured properly.
  • File does not exists.: - the input file can be provided either with path relative to the current directory or with an absolute path. If the directory name contains a whitespace, put the whole expression between double-quotes.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors