Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
puzzleplayer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Floris
puzzleplayer
Commits
2ddb8fa1
Commit
2ddb8fa1
authored
1 month ago
by
bionic85
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
ef922631
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PuzzlePlayer/Board.cs
+0
-39
0 additions, 39 deletions
PuzzlePlayer/Board.cs
PuzzlePlayer/Properties/Settings.Designer.cs
+1
-1
1 addition, 1 deletion
PuzzlePlayer/Properties/Settings.Designer.cs
with
1 addition
and
40 deletions
PuzzlePlayer/Board.cs
+
0
−
39
View file @
2ddb8fa1
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
PuzzlePlayer/Properties/Settings.Designer.cs
+
1
−
1
View file @
2ddb8fa1
...
...
@@ -12,7 +12,7 @@ namespace PuzzlePlayer_Namespace.Properties {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"17.1
2
.0.0"
)]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator"
,
"17.1
1
.0.0"
)]
internal
sealed
partial
class
Settings
:
global
::
System
.
Configuration
.
ApplicationSettingsBase
{
private
static
Settings
defaultInstance
=
((
Settings
)(
global
::
System
.
Configuration
.
ApplicationSettingsBase
.
Synchronized
(
new
Settings
())));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment