Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Descamps
projet_IA04
Commits
d005445f
Commit
d005445f
authored
Dec 29, 2021
by
Louis Soto
Browse files
levels
parent
090f728c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Boid/game/score.go
View file @
d005445f
...
...
@@ -6,8 +6,8 @@ type Score struct {
RequiredFishType
int
}
func
NewScore
(
level
int
,
requiredFishType
int
)
*
Score
{
return
&
Score
{
level
,
0
,
requiredFishType
}
func
NewScore
(
level
int
,
currentScore
int
,
requiredFishType
int
)
*
Score
{
return
&
Score
{
level
,
currentScore
,
requiredFishType
}
}
func
(
s
*
Score
)
AddCollectedFish
(
fishType
int
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment