Skip to content

joaopedrocyrino/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Project

This project is a minimalist and educational implementation of a complete Sudoku application. It focuses on providing a clean and intuitive user experience while integrating a simple backend powered by Rust.

The application allows users to generate Sudoku puzzles with a configurable number of empty cells (between 32 and 64), offering varying difficulty levels.



Project Structure

The project has three main folders:

  • Backend – Implemented in Rust
  • Frontend – Built with Next.js

⚙️ Backend

The backend implemented in rust exposes two endpoints:

  • GET / - Health check endpoint.
  • POST /sudoku - Generates a Sudoku puzzle based on the number of empty cells. It expects the following JSON body:
    {
        "empty_cells": number
    }
    and returns:
    {
        "puzzle": number[][],
        "solution": number[][]
    }

🖥️ web application

The frontend built with Next.js consists of two simple ui, one for setting the difficulty level and one for the game itself


Run Locally

✅ Requirements

Before you begin, make sure you have installed:


🔧 Clone the Repository

git clone https://github.com/joaopedrocyrino/sudoku.git
cd sudoku

⚙️ Run backend

To run backend:

cd backend
cargo build
cargo run

🖥️ Run Web application

To run web application:

cd frontend
yarn
yarn dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published