#sudoku #puzzle #menu #solve #input #play #difficulty

nightly bin+lib scanlan_sudoku

A command-line Sudoku game, created for a university project

1 unstable release

0.1.0 Apr 28, 2023

#835 in Games

Unlicense

46KB
1K SLoC

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.

Dependencies

~2–13MB
~101K SLoC