scanlan_sudoku

Crates.ioscanlan_sudoku
lib.rsscanlan_sudoku
version0.1.0
sourcesrc
created_at2023-04-28 09:48:39.884084
updated_at2023-04-28 09:48:39.884084
descriptionA command-line Sudoku game, created for a university project
homepagehttps://github.com/scan-lan/scanlan_sudoku
repositoryhttps://github.com/scan-lan/scanlan_sudoku
max_upload_size
id851281
size50,028
luke (scan-lan)

documentation

https://github.com/scan-lan/scanlan_sudoku

README

Sudoku

This is my Sudoku game and automatic solver, built using Rust.

Requirements

  • Rust
  • Cargo

Both can be installed by following the instructions for your platform on https://rustup.rs.

Installation

The game can be built using cargo build --release, then an executable for your OS should be available at <sudoku path>/target/release/scanlan_sudoku.

Alternatively, the game can be run directly with the command cargo run --release.

Features

  • Main menu
    • Play game
    • Enter puzzle to be solved
  • Playing interface
    • Input validation
    • Mistake warnings
    • Undo/redo
    • Setting time constraints
    • Timing solves
    • Quit to menu
  • Solving interface
    • Solves order 3 puzzles in microseconds
    • Undo/redo
    • Quit
  • Puzzle generation
    • Difficulty settings
  • Order-n puzzles (code modification required)

Changing to order-n puzzles

In its current state, the game requires code modification to change the order of the generated puzzles. It has been made as simple as possible.

  1. Open <./src/lib.rs> in a text editor of your choice.
  2. Modify const ORDER: usize = 3; to the value of your choice, e.g const ORDER: usize = 4; for a 16 x 16 puzzle.
Commit count: 116

cargo fmt