Full Puzzle Kind

Status: Draft

A proposed inheritance tree for libipuz. Some open questions:

  • Q. Should ACROSTIC and FILL_IN inherit from crossword? They separate in the spec and are generally quite different puzzle types. However, the boards they have are basically identical, so as a practical matter making them crosswords could be useful.

    An argument for making them separate is the invariants enforced by the fix_() style functions are totally different. None of the ones in IpuzCrossword will apply to IpuzCryptic, while eg. the ones in IpuzArrowword and IpuzBarred apply in spirit (if not code).

  • Q. Which of these can share the same IpuzCell type? Should that class grow to be the union of all the values, or do we want to investigate different types? As an example, do we store numbers for sudokus, or just use a string?

Class

Puzzle Kind

Kind URI

Implemented

Notes

IpuzPuzzle

None

None

[X]

Base class for all puzzles

IpuzAnswer

ANSWER

http://ipuz.org/answer

┃  ┣ IpuzRiddle

RIDDLE

http://ipuz.org/answer/riddle

┃  ┣ IpuzChoice

CHOICE

http://ipuz.org/answer/choice

┃  ┗ IpuzFlat

FLAT

http://ipuz.org/answer/flat

IpuzBlock

BLOCK

http://ipuz.org/block

┃  ┣ IpuzSlidingBlock

SLIDING_BLOCK

http://ipuz.org/block/slidingblock

┃  ┗ IpuzMaze

MAZE

http://ipuz.org/block/maze

IpuzCrossword

CROSSWORD

http://ipuz.org/crossword

[X]

┃  ┣ IpuzArrowword

ARROWWORD

http://ipuz.org/crossword/arrowword

[X]

┃  ┣ IpuzAcrostic

ACROSTIC

http://ipuz.org/acrostic

[X]

Currently subtypes Crossword

┃  ┣ IpuzBarred

BARRED

https://libipuz.org/barred

[X]

libipuz extension

┃  ┣ IpuzCryptic

CRYPTIC

http://ipuz.org/crossword/crypticcrossword

[X]

┃  ┣ IpuzDiagramless

DIAGRAMLESS

http://ipuz.org/crossword/diagramless

┃  ┣ IpuzFilippine

FILIPPINE

https://libipuz.org/filippine

[X]

libipuz extension

┃  ┗ IpuzFillIn

FILL_IN

http://ipuz.org/fill

┃  ┗ IpuzFreeForm

FREE_FORM

https://libipuz.org/freeform

libipuz extension

IpuzSudoku

SUDOKU

http://ipuz.org/sudoku

┃  ┣ IpuzCalcudoku

CALCUDOKU

http://ipuz.org/sudoku/calcudoku

┃  ┣ IpuzDiagonalSudoku

DIAGONAL_SUDOKU

http://ipuz.org/sudoku/diagonalsudoku

┃  ┣ IpuzHyperSudoku

HYPER_SUDOKU

http://ipuz.org/sudoku/hypersudoku

┃  ┣ IpuzJigsawSudoku

JIGSAW_SUDOKU

http://ipuz.org/sudoku/jigsawsudoku

┃  ┣ IpuzGreaterThanSudoku

GREATER_THAN_SUDOKU

http://ipuz.org/greaterthansudoku

URI is missing sudoku/

┃  ┣ IpuzKillerSudoku

KILLER_SUDOKU

http://ipuz.org/sudoku/killersudoku

┃  ┣ IpuzLatinSquare

LATIN_SQUARE

http://ipuz.org/sudoku/latinsquare

┃  ┗ IpuzWordoku

WORDOKU

http://ipuz.org/sudoku/wordoku

IpuzWordSearch

WORD_SEARCH

http://ipuz.org/wordsearch

IpuzAnagrid

ANAGRID

http://ipuz.org/wordsearch/anagrid

IpuzTraceOut

TRACE_OUT

http://ipuz.org/wordsearch/traceout