Giter Site home page Giter Site logo

sudokuproject's Introduction

Sudoku Project Sheikh Faisal Anwar

About / Synopsis

  • A Sudoku Project Build on Typescript, React and JS
  • Project status: working/prototype

Table of contents

Installation

Navigate to bash/shell/cmd

git clone https://github.com/sheikhfaisalanwar/SudokuProject.git
cd root
npm install

Usage

npm run app

NOTE: I noticed on Windows, typescript path doesn't get always get set. In this case I installed typescript globally

npm i typescript -g

A browser window should open up with following:

img_1.png

Features

  • Clicking on Solve: Solves the Default board
  • Clicking on Reset: Revert to unsolved Default Board
  • Clicking on Add new puzzle: Opens a dialog to enter a puzzle in the format below 856014730090000000240000160062059300031802450005340920024000073000000010018630294

API

  • GET
    • /getDefaultBoard : Retrieve default board as JSON
    • /solveDefaultboard : Return solved board as JSON
  • POST
    • /getCustomBoard/:puzzle/ : Serialize a string passed as puzzle and return a JSON
    • /solveCustomBoard/:puzzle/ : Serialize and solve a string board passed as puzzle. Return solved JSON

Here are some additional puzzle formats to test with:

  • Easy:
    • 001004002050003019470000005000080207004090800806030000200000068180200040500300900
    • 200080300060070084030500209000105408000000000402706000301007040720040060004010003

Content

Backend Client built in ExpressJS
Frontend Client in React

Requirements

NodeJS 14.15.3

Limitations

Currently only implements only 1 Solving Algorithm

The service that implments the solving algorithm is build on the Strategy patten so any additonal algorithms can be implemented here: https://github.com/sheikhfaisalanwar/SudokuProject/blob/master/root/backend/services/services.ts

Next Steps:

  • Error handling
    • Invalid entries
  • Decorate all controllers with swagger and generate swagger.json
  • Add additional algorithms as solution services: http://norvig.com/sudoku.html
  • Add React dialog to choose Algorithm

sudokuproject's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.