Added drawing of the hints

This commit is contained in:
2022-10-13 07:39:44 +02:00
parent 76daa4782d
commit 9b255c8ed9
5 changed files with 247 additions and 23 deletions
+6 -2
View File
@@ -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();