Skip to content
Snippets Groups Projects
Commit bc32c056 authored by Floris's avatar Floris
Browse files

sudoku.draw() method update

parent e1d09b6a
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,19 @@ namespace PuzzlePlayer_Namespace
}
}
}
for (int i = 1; i < Math.Sqrt(boardState.GetLength(0)); i++)
{
gr.DrawLine(Pens.Black,
r.X + i * (int)Math.Sqrt((double)boardState.GetLength(0)) * tilesize.Width,
r.Y,
r.X + i * (int)Math.Sqrt((double)boardState.GetLength(0)) * tilesize.Width,
r.Bottom);
gr.DrawLine(Pens.Black,
r.X,
r.Y + i * (int)Math.Sqrt((double)boardState.GetLength(1)) * tilesize.Height,
r.Right,
r.Y + i * (int)Math.Sqrt((double)boardState.GetLength(1)) * tilesize.Height);
}
}
public override void Generate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment