Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asteroids
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hexboard-games
asteroids
Commits
b00d5142
Commit
b00d5142
authored
9 years ago
by
Piers Williams
Browse files
Options
Downloads
Patches
Plain Diff
Fixed it so that missiles die when they hit stuff
parent
4da33fa0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/battle/SimpleBattle.java
+1
-0
1 addition, 0 deletions
src/battle/SimpleBattle.java
src/battle/controllers/Piers/PiersBattleTest.java
+3
-1
3 additions, 1 deletion
src/battle/controllers/Piers/PiersBattleTest.java
with
4 additions
and
1 deletion
src/battle/SimpleBattle.java
+
1
−
0
View file @
b00d5142
...
...
@@ -177,6 +177,7 @@ public class SimpleBattle {
int
playerID
=
(
actor
==
s1
?
1
:
0
);
PlayerStats
stats
=
this
.
stats
.
get
(
playerID
);
stats
.
nPoints
+=
pointsPerKill
;
ob
.
hit
();
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/battle/controllers/Piers/PiersBattleTest.java
+
3
−
1
View file @
b00d5142
...
...
@@ -3,6 +3,8 @@ package battle.controllers.Piers;
import
battle.BattleController
;
import
battle.SimpleBattle
;
import
battle.controllers.EmptyController
;
import
battle.controllers.Memo.MemoControllerRandom
;
import
battle.controllers.mmmcts.MMMCTS
;
/**
* Created by pwillic on 12/06/2015.
...
...
@@ -11,7 +13,7 @@ public class PiersBattleTest {
public
static
void
main
(
String
[]
args
)
{
SimpleBattle
battle
=
new
SimpleBattle
();
BattleController
player1
=
new
EmptyController
();
BattleController
player1
=
new
MMMCTS
();
BattleController
player2
=
new
PiersMCTS
();
battle
.
playGame
(
player1
,
player2
);
}
...
...
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