Giter Club home page Giter Club logo

c-sudoku's Introduction

C-Sudoku

C-Sudoku is a program written in C programming language.

It was created in continuation of another fun project the

Sudoku Solver

C-Sudoku generates sudoku riddles, in four levels of difficulty.

You can solve these riddles in CLI(command-line interface).

From a simple menu, the user can :

  • Play the game,

  • See the solution of the game,

4.png

  • Save the riddle in a simple txt file so that it can be printed,

5.png

  • Generate a new riddle.

INSTRUCTIONS

Using the terminal interface, after you clone the folder and change directory into it:

	git clone https://gitlab.com/christosangel/c-sudoku.git

	cd c-sudoku

you will need to compile c-sudoku.c:

	gcc c-sudoku.c -Wall -o c-sudoku

After that, all you need to need is run the executable:

	./c-sudoku

You will have to wait a couple of seconds for the machine to calculate a

new riddle (the speed depends on the processing capability of your hardware).

You will be prompted to give your prefered level of difficulty:

0.png

After that you can select between playing or saving the riddle, generating

a new one, or exiting:

1.png

If you select Play, you can enter the data (row number, column number and value, in a specific format 0-9/0-9/0-9, e.g. 3/5/7:

2.png

When you solve the riddle, you will be given your time:

3.png

CuSTOMIZING

  • The colors of the sudoku matrix are customisable:

6.png

7.png

  • The difficulty level is also quite arbitrary, and depends on how many numbers are missing.

    The difficulty levels can also be altered:

8.png

ENJOY!

c-sudoku's People

Contributors

christosangelopoulos avatar

Watchers

 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.