Added drawing of the hints
This commit is contained in:
@@ -11,7 +11,7 @@ namespace NonoGramme
|
||||
internal class Nonogramme : PictureBox
|
||||
{
|
||||
const int DEFAULT_GRID_SIZE = 5;
|
||||
const int DEFAULT_UI_RATIO = 20;
|
||||
const int DEFAULT_UI_RATIO = 30;
|
||||
private Size _gridSize;
|
||||
private Grid _gameGrid;
|
||||
public Size GridSize { get => _gridSize; set => _gridSize = value; }
|
||||
@@ -20,10 +20,14 @@ namespace NonoGramme
|
||||
{
|
||||
GameGrid = new Grid(new Size(DEFAULT_GRID_SIZE,DEFAULT_GRID_SIZE));
|
||||
}
|
||||
public void NewGame(Size gridSize)
|
||||
public void NewRandomGame(Size gridSize)
|
||||
{
|
||||
GameGrid = new Grid(gridSize);
|
||||
}
|
||||
public void LoadNewGame(string filePath)
|
||||
{
|
||||
GameGrid.ImportFromFile(filePath);
|
||||
}
|
||||
public override void Refresh()
|
||||
{
|
||||
base.Refresh();
|
||||
|
||||
Reference in New Issue
Block a user