UP | HOME

Org API

Table of Contents

Org-Sudoku API functions (org-sudoku.el)

org-sudoku-create nfilled

Create a sudoku game.

org-sudoku-deep-copy game

Make a copy of the game so that manipulating the copy does not change the parent.

org-sudoku-get-game

Interpret table at point as sudoku game and read it. A game structure is returned.

org-sudoku-rel-fields i j

Compute the list of related fields for field (i j).

org-sudoku-set-field game field value

Put value into field, and tell related fields that they cannot be value.

org-sudoku-solve

Solve the sudoku game in the table at point.

org-sudoku-solve-field

Just solve the field at point. This works by solving the whole game, then inserting only the single field.

org-sudoku-solve-game game &optional random stop-at

Solve game. If random is non-nit, select candidates randomly from a fields option. If random is nil, always start with the first allowed value and try solving from there. stop-at can be a float time, the solver will abort at that time because it is probably stuck.

org-sudoku-unknown-field-p game

Are there still unknown fields in the game?

Documentation from the http://orgmode.org/worg/ website (either in its HTML format or in its Org format) is licensed under the GNU Free Documentation License version 1.3 or later. The code examples and css stylesheets are licensed under the GNU General Public License v3 or later.