File: Games\Sudoku\GamesByEmail.SudokuGame.js

GamesByEmail
Class SudokuGame

Object
  
 
 
GamesByEmail.SudokuGame

All Implemented Interfaces:

Class, Elemental, Resourceful


GamesByEmail.SudokuGame

implements Foundation.Class, Foundation.Elemental, Foundation.Resourceful

Nested Class Summary
static ClassSudokuGame.Box
static ClassSudokuGame.Cell

Constructor Summary
GamesByEmail.SudokuGame(resourcePack)

Field Summary
static  resourcePack

Fields inherited from Foundation.Elemental
$Foundation_$registry_index

Method Summary
 anotherBoxClaimsPencil(boxIndex, rowIndex, columnIndex, cellIndex, value)
 anotherColumnClaimsPencil(boxIndex, columnIndex, cellIndex, value)
 anotherRowClaimsPencil(boxIndex, rowIndex, cellIndex, value)
 anyNonZeroPencils()
 boxColumnClaimsPencil(boxIndex, columnIndex, value)
 boxColumnContainsPencil(boxIndex, columnIndex, value)
 boxContainsSolution(box, value)
 boxCountPencils(box, value)
 boxIndexFromCellIndex(cellIndex)
 boxRowClaimsPencil(boxIndex, rowIndex, value)
 boxRowContainsPencil(boxIndex, rowIndex, value)
 checkForFishes(post, pivot)
 checkPencilByGroup(indeces)
 checkPencilByGroups(groupType)
 checkPencilForFishes(post, pivot, pencil)
 checkPencilGroup(indeces, group)
 checkPivotAndPencilForFish(post, pivot, pencil, pivotGroup)
 collectUniquePencils(indeces)
 columnContainsSolution(column, value)
 columnCountPencils(column, value)
 columnIndexFromCellIndex(cellIndex)
 comparePairedPencils(p1, p2)
 containsSolution(cell, value)
 countPencils(cell, value)
 countSolved()
 dispose()
 eliminateSolvedCells(indeces)
 excludePencils()
 getAboveBoxIndex(boxIndex)
 getAllPivotCombinations(pivots)
 getAllPossibleFishPivots(pivot, pencil)
 getAllSubGroupCombinations(pencils)
 getBelowBoxIndex(boxIndex)
 getBoxBaseColumnIndex(boxIndex)
 getBoxBaseRowIndex(boxIndex)
 getBoxColumnIndeces(boxIndex, columnIndex)
 getBoxHtml(index)
 getBoxIndeces(index)
 getBoxRowIndeces(boxIndex, rowIndex)
 getCellHtml(index)
 getColumnIndeces(index)
 getHtml()
 getLeftBoxIndex(boxIndex)
 getPencilColor(assurity)
 getRightBoxIndex(boxIndex)
 getRowIndeces(index)
 getValue()
 hasPencil(indeces, pencil)
 hasPencilAtIndex(index, pencil)
 indexInPivotGroup(index, pivotGroup)
 pencilClicked(cellIndex, value, assurity, rightClick, ctrlKey)
 postMatchesPivot(indeces, pencil, pivotGroup)
 pushGroupCombinations(groups, group, index, pencils, size)
 pushPivotCombinations(groups, group, index, pivots, size)
 resetPencils()
 rowContainsSolution(row, value)
 rowCountPencils(row, value)
 rowIndexFromCellIndex(cellIndex)
 setValue(value)
 solutionClicked(cellIndex, rightClick)
 solvePencils()
 turnOffPencilInPosttGroup(pivot, index, pencil, pivotGroup)
 updateFromHash(delay)
 updatePencils()
 updateToHash()
 walk(indeces, method, arg)
 workPencils(method)
static  writeToPage(resourcePack)

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Methods inherited from Foundation.Elemental
attachEvent, detachEvent, elementId, event, getById, getElement, getElementValue, getElements, getFirst, getNext, parseElementId, processHtml, processHtml

Methods inherited from Foundation.Resourceful
resource, resource, resourceUrl, resourceUrl

Constructor Detail

SudokuGame

GamesByEmail.SudokuGame(resourcePack)
Parameters:
resourcePack - 

Field Detail

resourcePack

static resourcePack

Method Detail

anotherBoxClaimsPencil

anotherBoxClaimsPencil(boxIndex,
                       rowIndex,
                       columnIndex,
                       cellIndex,
                       value)
Parameters:
boxIndex - 

rowIndex - 

columnIndex - 

cellIndex - 

value - 


anotherColumnClaimsPencil

anotherColumnClaimsPencil(boxIndex,
                          columnIndex,
                          cellIndex,
                          value)
Parameters:
boxIndex - 

columnIndex - 

cellIndex - 

value - 


anotherRowClaimsPencil

anotherRowClaimsPencil(boxIndex,
                       rowIndex,
                       cellIndex,
                       value)
Parameters:
boxIndex - 

rowIndex - 

cellIndex - 

value - 


anyNonZeroPencils

anyNonZeroPencils()

boxColumnClaimsPencil

boxColumnClaimsPencil(boxIndex,
                      columnIndex,
                      value)
Parameters:
boxIndex - 

columnIndex - 

value - 


boxColumnContainsPencil

boxColumnContainsPencil(boxIndex,
                        columnIndex,
                        value)
Parameters:
boxIndex - 

columnIndex - 

value - 


boxContainsSolution

boxContainsSolution(box,
                    value)
Parameters:
box - 

value - 


boxCountPencils

boxCountPencils(box,
                value)
Parameters:
box - 

value - 


boxIndexFromCellIndex

boxIndexFromCellIndex(cellIndex)
Parameters:
cellIndex - 


boxRowClaimsPencil

boxRowClaimsPencil(boxIndex,
                   rowIndex,
                   value)
Parameters:
boxIndex - 

rowIndex - 

value - 


boxRowContainsPencil

boxRowContainsPencil(boxIndex,
                     rowIndex,
                     value)
Parameters:
boxIndex - 

rowIndex - 

value - 


checkForFishes

checkForFishes(post,
               pivot)
Parameters:
post - 

pivot - 


checkPencilByGroup

checkPencilByGroup(indeces)
Parameters:
indeces - 


checkPencilByGroups

checkPencilByGroups(groupType)
Parameters:
groupType - 


checkPencilForFishes

checkPencilForFishes(post,
                     pivot,
                     pencil)
Parameters:
post - 

pivot - 

pencil - 


checkPencilGroup

checkPencilGroup(indeces,
                 group)
Parameters:
indeces - 

group - 


checkPivotAndPencilForFish

checkPivotAndPencilForFish(post,
                           pivot,
                           pencil,
                           pivotGroup)
Parameters:
post - 

pivot - 

pencil - 

pivotGroup - 


collectUniquePencils

collectUniquePencils(indeces)
Parameters:
indeces - 


columnContainsSolution

columnContainsSolution(column,
                       value)
Parameters:
column - 

value - 


columnCountPencils

columnCountPencils(column,
                   value)
Parameters:
column - 

value - 


columnIndexFromCellIndex

columnIndexFromCellIndex(cellIndex)
Parameters:
cellIndex - 


comparePairedPencils

comparePairedPencils(p1,
                     p2)
Parameters:
p1 - 

p2 - 


containsSolution

containsSolution(cell,
                 value)
Parameters:
cell - 

value - 


countPencils

countPencils(cell,
             value)
Parameters:
cell - 

value - 


countSolved

countSolved()

dispose

dispose()
Overrides:
dispose in class Class

eliminateSolvedCells

eliminateSolvedCells(indeces)
Parameters:
indeces - 


excludePencils

excludePencils()

getAboveBoxIndex

getAboveBoxIndex(boxIndex)
Parameters:
boxIndex - 


getAllPivotCombinations

getAllPivotCombinations(pivots)
Parameters:
pivots - 


getAllPossibleFishPivots

getAllPossibleFishPivots(pivot,
                         pencil)
Parameters:
pivot - 

pencil - 


getAllSubGroupCombinations

getAllSubGroupCombinations(pencils)
Parameters:
pencils - 


getBelowBoxIndex

getBelowBoxIndex(boxIndex)
Parameters:
boxIndex - 


getBoxBaseColumnIndex

getBoxBaseColumnIndex(boxIndex)
Parameters:
boxIndex - 


getBoxBaseRowIndex

getBoxBaseRowIndex(boxIndex)
Parameters:
boxIndex - 


getBoxColumnIndeces

getBoxColumnIndeces(boxIndex,
                    columnIndex)
Parameters:
boxIndex - 

columnIndex - 


getBoxHtml

getBoxHtml(index)
Parameters:
index - 


getBoxIndeces

getBoxIndeces(index)
Parameters:
index - 


getBoxRowIndeces

getBoxRowIndeces(boxIndex,
                 rowIndex)
Parameters:
boxIndex - 

rowIndex - 


getCellHtml

getCellHtml(index)
Parameters:
index - 


getColumnIndeces

getColumnIndeces(index)
Parameters:
index - 


getHtml

getHtml()

getLeftBoxIndex

getLeftBoxIndex(boxIndex)
Parameters:
boxIndex - 


getPencilColor

getPencilColor(assurity)
Parameters:
assurity - 


getRightBoxIndex

getRightBoxIndex(boxIndex)
Parameters:
boxIndex - 


getRowIndeces

getRowIndeces(index)
Parameters:
index - 


getValue

getValue()

hasPencil

hasPencil(indeces,
          pencil)
Parameters:
indeces - 

pencil - 


hasPencilAtIndex

hasPencilAtIndex(index,
                 pencil)
Parameters:
index - 

pencil - 


indexInPivotGroup

indexInPivotGroup(index,
                  pivotGroup)
Parameters:
index - 

pivotGroup - 


pencilClicked

pencilClicked(cellIndex,
              value,
              assurity,
              rightClick,
              ctrlKey)
Parameters:
cellIndex - 

value - 

assurity - 

rightClick - 

ctrlKey - 


postMatchesPivot

postMatchesPivot(indeces,
                 pencil,
                 pivotGroup)
Parameters:
indeces - 

pencil - 

pivotGroup - 


pushGroupCombinations

pushGroupCombinations(groups,
                      group,
                      index,
                      pencils,
                      size)
Parameters:
groups - 

group - 

index - 

pencils - 

size - 


pushPivotCombinations

pushPivotCombinations(groups,
                      group,
                      index,
                      pivots,
                      size)
Parameters:
groups - 

group - 

index - 

pivots - 

size - 


resetPencils

resetPencils()

rowContainsSolution

rowContainsSolution(row,
                    value)
Parameters:
row - 

value - 


rowCountPencils

rowCountPencils(row,
                value)
Parameters:
row - 

value - 


rowIndexFromCellIndex

rowIndexFromCellIndex(cellIndex)
Parameters:
cellIndex - 


setValue

setValue(value)
Parameters:
value - 


solutionClicked

solutionClicked(cellIndex,
                rightClick)
Parameters:
cellIndex - 

rightClick - 


solvePencils

solvePencils()

turnOffPencilInPosttGroup

turnOffPencilInPosttGroup(pivot,
                          index,
                          pencil,
                          pivotGroup)
Parameters:
pivot - 

index - 

pencil - 

pivotGroup - 


updateFromHash

updateFromHash(delay)
Parameters:
delay - 


updatePencils

updatePencils()

updateToHash

updateToHash()

walk

walk(indeces,
     method,
     arg)
Parameters:
indeces - 

method - 

arg - 


workPencils

workPencils(method)
Parameters:
method - 


writeToPage

static writeToPage(resourcePack)
Parameters:
resourcePack -