Closed MaximSmolskiy closed 5 years ago
Class Nonogram
This class exists now.
Add fields:
Add methods:
getLeftRowsLength()
or getTopColsLength()
by the type of a line - row or column.getLeftRowLength(int)
or getTopColLength(int)
by the type of a line - row or column.getLeftRowValue(int, int)
or getTopColValue(int, int)
by the type of a line - row or column.Add private constructor without parameters. Add constructor by a count of rows and columns, bitmap and parameter for converting.
For more information about methods by the type of a line
see #87 issue.
Class Cell
.
New class. This is the class of the cell of matrix that uses in the algorithm with finite-state machine.
Fields:
Methods:
true
in case if all int[][1] equals. If length of _dirs
is zero this method returns false
.Constructor without parameters.
Class StateMachine
.
New class. This is the representation of the finite-state machine. It contains state table.
Fields:
Methods:
state
, if input value is input
Contructor by the line (int[] line) - numbers from nonogram.
Class NonogramSolver
.
This class exists now.
Fields:
Methods:
true
if nonogram can be solved. Simple boxes
for line with index i
with type type
(row or column). i
with type type
(row or column). It returns false
if this nonogram hasn't solution. Constructor without parameters.
Class ImageConverter
.
This class exists now.
Replace method
public static Field convertImage(
Bitmap bmp,
int rows,
int cols,
AsyncTask<Void, Void, Field> asyncTask)
by
public static Nonogram convertImage(
Bitmap bmp,
int rows,
int cols,
AsyncTask<Void, Void, Nonogram> asyncTask)
Move method getThumbnail
in the constructor of Field
class.
Class
Field
This class exists now.Add fields:
_colors
by default
._colors
(optional).Add methods:
getRows()
orgetCols()
by the type of a line - row or column.getColor(int, int)
by the type of a line - row or column.setColor(int, int, int)
by the type of a line - row or column.Add private constructor without parameters. Constructor by a count of rows and columns replaced by constructor by a count of rows and columns, bitmap and parameter for converting.