Class: Doku::Hexadoku

Inherits:
Puzzle
  • Object
show all
Extended by:
PuzzleOnGrid::ClassMethods
Includes:
PuzzleOnGrid
Defined in:
lib/doku/hexadoku.rb

Overview

This class represents Hexadoku, otherwise known as 16x16 Sudoku. This is a more complex version of Sudoku with a 16x16 grid, using hex digits 0 through F. Each instance of this class represents a particular arrangement of numbers (glyphs) written in the boxes.

The template for this puzzle is:

puzzle = Doku::Hexadoku.new "....|....|....|....\n....|....|....|....\n....|....|....|....\n....|....|....|....\n----+----+----+----\n....|....|....|....\n....|....|....|....\n....|....|....|....\n....|....|....|....\n----+----+----+----\n....|....|....|....\n....|....|....|....\n....|....|....|....\n....|....|....|....\n----+----+----+----\n....|....|....|....\n....|....|....|....\n....|....|....|....\n....|....|....|....\n"

Constant Summary

Constants included from PuzzleOnGrid

PuzzleOnGrid::Separators

Instance Attribute Summary

Attributes included from PuzzleOnGrid::ClassMethods

#glyph_chars, #template

Attributes inherited from Puzzle

#glyph_state

Method Summary

Methods included from PuzzleOnGrid::ClassMethods

column, coordinates_in_grid_string, glyph_char, glyph_parse, row, square_group, squares_matching

Methods included from PuzzleOnGrid

#get, #initialize, #set, #to_grid_string, #to_s

Methods inherited from Puzzle

#==, #[], #[]=, #each, #eql?, #filled?, #glyphs, #groups, #hash, #initialize, #solution?, #solution_for?, #squares, #subset?, #valid?

Methods included from SolvableWithDancingLinks

#each_solution, #exact_cover_to_solution, #solutions, #solve, #to_link_matrix