Skip to content
Snippets Groups Projects
Commit 2ddb8fa1 authored by bionic85's avatar bionic85
Browse files

cleanup

parent ef922631
No related branches found
No related tags found
No related merge requests found
......@@ -103,39 +103,6 @@ namespace PuzzlePlayer_Namespace
return SOLUTIONS.UNIQUE;
}
// virtual method for solving one step
/*public virtual void Hint()
{
int row;
int col;
bool hintPossible = false;
for (int i = 0; i < boardState.GetLength(0); i++)
{
for (int j = 0; j < boardState.GetLength(1); j++)
{
if (boardState[i, j] == emptySpace)
{
hintPossible = true;
}
}
}
while (hintPossible)
{
row = RandomNumber(boardState.GetLength(0) - 1);
col = RandomNumber(boardState.GetLength(1) - 1);
if (boardState[row, col] == emptySpace)
{
boardState[row, col] = solution[row, col];
break;
}
}
}
*/
public virtual void Hint()
{
List<Tuple<int, int>> emptySpaces = new List<Tuple<int, int>>();
......@@ -164,12 +131,6 @@ namespace PuzzlePlayer_Namespace
}
}
public virtual int RandomNumber(int number)
{
return (int)Math.Floor((double)(random.NextDouble() * number + 1));
}
// a abstract methode to get a list of all possible moves
protected virtual List<Move> GetSolveList(int[,] boardToSolve)
{
......
......@@ -12,7 +12,7 @@ namespace PuzzlePlayer_Namespace.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
......
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