Skip to content

ciceropaulino/faculdade-projeto-sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESTE PROJETO FOI PARTE DA NOTA DO COMPONENTE CURRICULAR CHAMADO "LINGUGAGEM DE PROGRAMAÇÃO I" DO BACHARELADO EM TECNOLOGIA DA INFORMAÇÃO DA UNIVERSIDADE FEDERAL DO RIO GRANDE DO NORTE. ESSE PROJETO FOI ORIGINALMENTE CONTROLADO, VERSIONADO E DISPONIBILIZADO POR MIM ATRAVÉS DO GITHUB CLASSROOM. O QUE SEGUE ABAIXO É A DESCRIÇÃO DO PROJETO ESCRITA PELO PROFESSOR QUE MINISTROU A MATÉRIA.

Intro

This project implements a terminal version of the Sudoku game.

The full description of the project may be found here.

The game

According to the wikipedia:

Sudoku is a logic-based, combinatorial number-placement puzzle. The objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose the grid (also called "boxes", "blocks", or "regions") contain all of the digits from 1 to 9. The puzzle setter provides a partially completed grid, which for a well-posed puzzle has a single solution.

The Sudoku rules are:

  1. Each row, column, and nonet can contain each number (typically 1 to 9) exactly once.
  2. The sum of all numbers in any nonet, row, or column must be equal to 45.

Input

A ascii file with puzzles, as the one available in data/input.txt.

Usage

% ./sudoku --help
Usage: sudoku [-c <num>] [-h] <input_cfg_file>
  Game options:
    -c  <num> Number of checks per game. Default = 3.
    -h        Print this help text.

Features

The game offers:

  • colored output.
  • indication of invalid plays, i.e. plays that breaks the Sudoku's basic rules.
  • a simple interface.
  • undo actions.
  • limited possibility of checking if a move is correct or not.

Author

UFRN/DIMAp, copyright 2020.

Selan R. dos Santos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published