Skip to content
Snippets Groups Projects
Commit 3431c731 authored by PowerfulShuffle's avatar PowerfulShuffle
Browse files

exploit patch

parent abcb1894
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,7 @@ namespace PuzzlePlayer_Namespace
hintbutton.Text = "Hint";
hintbutton.MouseClick += (object sender, MouseEventArgs mea) =>
{
if (HasWon) return;
Board.Hint();
penalty++;
if (Board.IsBoardSolved()) Win();
......@@ -186,6 +187,7 @@ namespace PuzzlePlayer_Namespace
solvebutton.Text = "Solve";
solvebutton.MouseClick += (object sender, MouseEventArgs mea) =>
{
if (HasWon) return;
Board.Solve(false);
legit = false;
if (Board.IsBoardSolved()) Win();
......@@ -252,11 +254,13 @@ namespace PuzzlePlayer_Namespace
switch (k)
{
case Keys.N:
if (HasWon) return;
Board.Generate();
Draw();
HasWon = false;
return;
case Keys.H:
if (HasWon) return;
Board.Hint();
penalty++;
if (Board.IsBoardSolved()) Win();
......
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