Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: icefox/eclipse-battle-simulator
base: baa69f410d
head fork: icefox/eclipse-battle-simulator
compare: 8c5060d1d8
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.js
5 index.js
@@ -129,7 +129,8 @@ ancient.push(parts['ion cannon']);
ancient.push(parts['ion cannon']);
ancient.push(parts['electron computer']);
+// technically it has 2, but 1 comes from the drive
// technically not on the board, but not a valid ship without
ancient.push(parts['nuclear drive']);
ancient.push(parts['nuclear source']);
@@ -432,7 +433,7 @@ function test_ship(stock) {
ship = ship.concat(base);
var defense = [];
for (var i = 0; i < max_ships; ++i) {
- defense.push(ship);
+ defense.push(ship.slice(0));
var r = battle(offense, defense);
r = Math.floor(r);

No commit comments for this range

Something went wrong with that request. Please try again.