Sudoku-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Description

'Author:' Thomas Günther

((wikipedia |)) Sudoku is a plug-in to generate and solve Number Place puzzles, so called Sudokus.

A Sudoku puzzle consists of 9 x 9 cells subdivided into 9 regions with 3 x 3 cells. The rules are simple. In each row, column and region must be the numbers 1 to 9 so far. Some numbers are given at the beginning. These cells are cyan background. The aim of the puzzle is to find the missing numbers. There is only one solution to a Sudoku puzzle.

The Sudoku puzzles are generated on the fly. The number of givens can be selected in the settings of the plug-ins to a minimum of 26 The generation of puzzles with less than 26 givens takes too long. By default, the cells with given numbers symmetrically. But this can be changed in the settings.

To solve difficult Sudoku puzzles, there are some hints. Defective cells are red cells with ambiguous figures, and magenta. This assistance can be switched off in the settings. Use the green button cells can be marked. A selected cell has a green background. With the yellow key, the cursor to the next free cell with minimal possible numbers is set. The red button is the next possible number for the current cell.

Each time the plug-ins from the main menu the same puzzle appears. A new puzzle is only generated when the VDR is started or when the appropriate command is selected in the command menu. The command menu is opened with the blue button.

In the command menu you can load and save puzzles from / sudoku-list file. This file is located in the plugins folder inside the configuration directory of the VDR. If the configuration directory is not explicitly set, the video directory is used (eg / video0/plugins/sudoku/sudoku-list).

The sudoku-list file contains lines with a sudoku dump and an optional description. The sudoku dump must in the first position of the line start. The separator between sudoku dump and description is a space. Everything after the first space is considered as the description.

A Sudoku dump is made up of three parts. The first part contains only the givens, the second part all of the numbers set so far (including the default) and the third part of the selected cells. The parts are separated by a colon. All except the first part is optional. The parts are strings of 81 digits, or underscores. An underscore is interpreted as zero. All other characters are ignored with the exception of colons and spaces that will end the string They can be used to structure the dump, for example, plus sign after each 9 digits / under lines.

<! - Status === === ->

Images

Sudoku

Operation

(| Class = "wikitable" | -- | Bgcolor = # efefef | Left / Right / Up / Down | Move cursor to the puzzle. | -- | Bgcolor = # efefef | 1 .9 | The number in the current cell. | -- | Bgcolor = # efefef | 0 | The number in the current cell. | -- | Bgcolor = # 00ff00 | Green | Activate / deactivate the marker in the current cell. | -- | Bgcolor = # ffff00 | Yellow | Cursor to the next free cell with minimal possible numbers and share. | -- | Bgcolor = # ff0000 | Red | The next possible contact number for the current cell - delete the number if there is no greater possible number. | -- | Bgcolor = # 0000ff | Blue | Open menu command. | -- | Bgcolor = # efefef | Back | Plug-in finish. |)

=== === Command Menu (| Class = "wikitable" | -- ! Code ! Description | -- | 'Create a new puzzle' | A random puzzle is generated. | -- | 'Puzzle Load' | Loading a Sudoku puzzle from the list. In the list menu you can also delete Sudokus from the list or edit the descriptions. | -- | 'Savepuzzle' | Add to the Sudoku puzzle list, together with an optional description. | -- | 'Reset Puzzle' | Reset the numbers in all cells, with the exception of the givens. | -- | 'Setting menu to open' | The Settings menu of the open plug-ins will be. | -- | 'Quit' | Plug-in finish. |)

Colors === === (| Class = "wikitable" | -- | Bgcolor = # 00FFFF | Turquoise | Givens | -- | Bgcolor = # 00ff00 | Green | Marked cells | -- | Bgcolor = # ff0000 | Red | Incorrect Cells | -- | Bgcolor = # FF00FF | Magenta | Ambiguous numbers |)

<! - === SVDRP commands === -> <! - Hardware requirements == == ->

== == Software Requirements Vdr *> = '1 .3.47' '

<! - Installation == == -> <! - Options === === -> <! - Patches === === -> <! - == == Configuration ->

Settings

(| Class = "wikitable" | -- ! Parameters ! Values ! Standard ! Description | -- | 'CountGivens' | 26-81 | 36 | The number of given numbers of the generated puzzles. | -- | 'Symmetric givens' | Yes / no | Yes | The cells with givens are symmetrically arranged. | -- | 'Mark errors' | Yes / no | Yes | Erroneous cells are highlighted in red. | -- | 'Mark ambiguous numbers' | Yes / no | Yes | Cells with ambiguous numbers are marked with magenta color. | -- | 'Possible numbers as patterns show' | Yes / no | Yes | In all empty cells displayed a pattern that represents the kinds of numbers. The model is structured as a small 3 x 3 grid, whose parts from top left to bottom right correspond to the numbers 1 to 9 If a number is possible in a cell, then the background of the corresponding grid section is colored. | -- | 'Possible numbers as digits (VDR> = 1.5.4)' | Yes / no | Yes | In all empty cells are displayed digits that represent the potential numbers. | -- | 'Erase markers during a reset' | Yes / no | No. | When you reset the puzzle to its initial state wants to erase all markers. | -- | 'Transparency (%)' | 0-100 | 50 | Set the transparency of the menu. | -- |)

<! - Parameters === === -> <! - Other == == -> <! - Problems === === -> <! - Tips === === -> <! - Wishlist === === -> <! - Snapshot === === ->

Version History

(| Width = 100% class = "wikitable" | -- ! Version ! Date ! Description ! Link | -- | 0.3.3 | 29.11.2008 |

  • Fixed solve and print mode of sudoku_generator (do not work if the dump begins with a digit - thanks to Ville Skytta for reporting this).
  • Updated Finnish language texts (thanks to Ville Skytta).
  • Updated French language texts (thanks to Michaël NIVAL).
  • Updated Italian language texts (thanks to Diego Pierotto).
  • Updated Spanish language texts (thanks to Bittor Corl).

| ((Vdrportal board | 82.217 | 0.3.3)) |)

Links

  1. [Http: / / toms-cafe.de/vdr/sudoku homepage of the plugin]

sudoku puzzle solver sudoku solver

strategy sudoku sudoku solving strategy

sudoku strategies

Suduko

sudoku techniques

daily sudoku daily sudoku ((i18n | sudoku-plugin))