C# 클래스 Sudoku_Solver.SudokuSolver

파일 보기 프로젝트 열기: dexxa/SudokuSolver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Blocks Panel[]
CellUnsolved int
FailedAttemp int
Guesses List
NumberSet System.Boolean
Numbers ].Number[
TestNumbers int[,,]

공개 메소드들

메소드 설명
GetNewBlock ( int row, int column ) : Panel
SetupBlocks ( ) : void
SetupCells ( Panel block, int row, int column ) : void
SudokuSolver ( ) : System

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
AppendStatus ( string message ) : void
BackgroundWork ( object sender, EventArgs e ) : void
ClearCellStyle ( CellStyleState StyleState ) : void
ColumnContainsNumber ( int column, int number ) : System.Boolean
DisplayAllPossibleValues ( ) : void
DisplayCellPossibleValues ( int row, int column, List PossibleValues ) : void
FindCellInBlock ( int block, int number ) : Pointx
GetBestGuess ( int GuessNumberCount ) : List
GetBestGuesses ( ) : List
GetBlockHorizontalSiblings ( int block ) : List
GetBlockOriginByIndex ( int block ) : Pointx
GetBlockVerticalSiblings ( int block ) : List
GetCellCoordinateByName ( string name ) : Pointx
GetConflictingValueCoordinates ( int row, int column, int number ) : List
GetPossibleCellsBySiblings ( List CellSiblings, int TargetBlock ) : List
GetPossibleGuess ( ) : System.UInt64
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsGameSolved ( ) : bool
IsLegalValue ( int row, int column, int number ) : System.Boolean
IsLegalValue ( string name, int number ) : System.Boolean
RowContainsNumber ( int row, int number ) : System.Boolean
SetCellStyle ( int row, int column, CellStyleState StyleState ) : void
SetCellValue ( int row, int column, int value, CellState state ) : void
SetCellValue ( int row, int column, string value, CellState state ) : void
SetCellValue ( string name, int value, CellState state ) : void
SetNumbers_Click ( object sender, EventArgs e ) : void
SetOriginalNumber ( System.Boolean set ) : void
SetTestNumber ( ) : void
ShowPossibleValues_Click ( object sender, EventArgs e ) : void
SingleSolve_Click ( object sender, EventArgs e ) : void
SolveByRowColumnAndBlock ( int row, int column ) : List
SolveBySiblingsElimination ( int number, int row, int column ) : List
SolveMultiRun_Click ( object sender, EventArgs e ) : void
SolveMultiRuns ( ) : System.Boolean
SolveSingleRun ( ) : System.Boolean
StartGuess_Click ( object sender, EventArgs e ) : void
StartGuessing ( ) : void
SudokuSolver_Load ( object sender, EventArgs e ) : void
UpdateStatusProgress ( int GuessLeft, int GuessMade, System.UInt64 PossibleGuesses ) : void
UpdateStatusProgressMaximum ( int max ) : void
ValidateTextbox ( object sender, KeyEventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

GetNewBlock() 공개 메소드

public GetNewBlock ( int row, int column ) : Panel
row int
column int
리턴 Panel

SetupBlocks() 공개 메소드

public SetupBlocks ( ) : void
리턴 void

SetupCells() 공개 메소드

public SetupCells ( Panel block, int row, int column ) : void
block Panel
row int
column int
리턴 void

SudokuSolver() 공개 메소드

public SudokuSolver ( ) : System
리턴 System

프로퍼티 상세

Blocks 보호되어 있는 프로퍼티

protected Panel[] Blocks
리턴 Panel[]

CellUnsolved 보호되어 있는 프로퍼티

protected int CellUnsolved
리턴 int

FailedAttemp 보호되어 있는 프로퍼티

protected int FailedAttemp
리턴 int

Guesses 보호되어 있는 프로퍼티

protected List Guesses
리턴 List

NumberSet 보호되어 있는 프로퍼티

protected Boolean,System NumberSet
리턴 System.Boolean

Numbers 보호되어 있는 프로퍼티

protected Number[,] Numbers
리턴 ].Number[

TestNumbers 보호되어 있는 프로퍼티

protected int[,,] TestNumbers
리턴 int[,,]