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
ef922631
Commit
ef922631
authored
1 month ago
by
PowerfulShuffle
Browse files
Options
Downloads
Patches
Plain Diff
win message change
parent
b80e0450
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PuzzlePlayer/PuzzleForm.cs
+4
-4
4 additions, 4 deletions
PuzzlePlayer/PuzzleForm.cs
with
4 additions
and
4 deletions
PuzzlePlayer/PuzzleForm.cs
+
4
−
4
View file @
ef922631
...
...
@@ -319,15 +319,15 @@ namespace PuzzlePlayer_Namespace
if
(
Board
is
Minesweeper
ms
)
penalty
+=
ms
.
getBoardPenalty
();
int
reward
=
(
int
)
GetMoney
((
double
)
completiontime
,
(
double
)
Board
.
getBoardBaseScore
(),
15
*(
double
)
penalty
);
MessageBox
.
Show
(
$"oi oi oi,
{
completiontime
}
, +
{
reward
}
out of
{
Board
.
getBoardBaseScore
()}
, legit:
{
legit
}
, penalty:
{
penalty
}
"
);
//
MessageBox.Show($"You won in {completiontime} seconds and earned {reward} cash!");
//
MessageBox.Show($"oi oi oi, {completiontime}, +{reward} out of {Board.getBoardBaseScore()}, legit:{legit}, penalty:{penalty}");
MessageBox
.
Show
(
$"You won in
{
completiontime
}
seconds and earned
{
reward
}
cash!"
);
UserDataManager
.
Money
+=
reward
;
static
double
GetMoney
(
double
t
,
double
basescore
,
double
p
)
static
double
GetMoney
(
double
t
,
double
basescore
,
double
extratime
)
{
return
basescore
*
(
5
-
4
/
(
1
+
Math
.
Exp
(-
2
*
(
t
+
p
)
/
basescore
)));
return
basescore
*
(
5
-
4
/
(
1
+
Math
.
Exp
(-
2
*
(
t
+
extratime
)
/
basescore
)));
}
}
}
...
...
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