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
Compare revisions
e8ab2066868a6c8fe3b06a895f8c53ad07fba452 to abcb1894597e6c9e8b9246f26dfc85e792693102
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
8783497/puzzleplayer
Select target project
No results found
abcb1894597e6c9e8b9246f26dfc85e792693102
Select Git revision
Branches
MidtermBuild
main
Swap
Target
8783497/puzzleplayer
Select target project
8783497/puzzleplayer
1 result
e8ab2066868a6c8fe3b06a895f8c53ad07fba452
Select Git revision
Branches
MidtermBuild
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
bug fix
· 93742e4a
PowerfulShuffle
authored
2 months ago
93742e4a
Merge branch 'main' of
https://git.science.uu.nl/8783497/puzzleplayer
· abcb1894
PowerfulShuffle
authored
2 months ago
abcb1894
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PuzzlePlayer/PuzzleForm.cs
+6
-2
6 additions, 2 deletions
PuzzlePlayer/PuzzleForm.cs
with
6 additions
and
2 deletions
PuzzlePlayer/PuzzleForm.cs
View file @
abcb1894
...
...
@@ -179,6 +179,7 @@ namespace PuzzlePlayer_Namespace
{
Board
.
Hint
();
penalty
++;
if
(
Board
.
IsBoardSolved
())
Win
();
Draw
();
};
CreateButton
(
solvebutton
);
...
...
@@ -256,7 +257,10 @@ namespace PuzzlePlayer_Namespace
HasWon
=
false
;
return
;
case
Keys
.
H
:
Board
.
Hint
();
penalty
++;
if
(
Board
.
IsBoardSolved
())
Win
();
Draw
();
return
;
case
Keys
.
Space
:
Board
.
Solve
(
false
);
...
...
@@ -307,7 +311,7 @@ namespace PuzzlePlayer_Namespace
Draw
();
if
(!
legit
)
return
;
int
completiontime
=
(
int
)
stopwatch
.
ElapsedMilliseconds
/
1000
;
int
reward
=
(
int
)
GetMoney
((
double
)
completiontime
,
(
double
)
Board
.
getBoardBaseScore
(),
(
double
)
penalty
);
int
reward
=
(
int
)
GetMoney
((
double
)
completiontime
,
(
double
)
Board
.
getBoardBaseScore
(),
10
*
(
double
)
penalty
);
MessageBox
.
Show
(
$"oi oi oi,
{
completiontime
}
, +
{
reward
}
out of
{
Board
.
getBoardBaseScore
()}
, legit:
{
legit
}
, penalty:
{
penalty
}
"
);
UserDataManager
.
Money
+=
reward
;
...
...
This diff is collapsed.
Click to expand it.