Skip to content
Snippets Groups Projects
Commit 4c398558 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

update to allow simulation

parent 69f0dd6d
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,10 @@ public class SimpleBattle {
// apply them to each player's ship, taking actions as necessary
Action a1 = p1.getAction(this, 0);
Action a2 = p2.getAction(this, 1);
update(a1, a2);
}
public void update(Action a1, Action a2) {
// now apply them to the ships
s1.update(a1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment