Skip to content

Commit b1e0ad1

Browse files
committed
lib included
1 parent 6a7add0 commit b1e0ad1

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ ehthumbs.db
3636
Thumbs.db
3737

3838
repush.sh
39+
40+
# include /lib
41+
!lib/*
42+
```

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
1212
- Timer 1 - Time took for the user to create mage.
1313
- Timer 2 - Time took for the AI to solve the Mage solution (duration for AI to **graphically** reach the goal).
1414
- Window can now be resized.
15+
- When the App starts, it will start at the center of the screen.
1516

1617
### Changed
1718

lib/flatlaf-3.2.1.jar

797 KB
Binary file not shown.

src/Game.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,16 +642,18 @@ public void actionPerformed(ActionEvent e) {
642642
startMovingAnt = false;
643643
antReached = true;
644644
}
645-
646645
}
647646

648647
private double setSpeed(Tile nextTile) {
649648
double output = Tile.COST_SWAMPLAND; // highest cost 4 for open terrain
650649

651650
if(nextTile.isSwampland()){
652-
output = (output/Tile.COST_SWAMPLAND) + 0.5; // 1.25
651+
output = (output/Tile.COST_SWAMPLAND) + 1.5; // 1.25
653652
} else if(nextTile.isGrassland()){
654653
output = output*2/Tile.COST_GRASSLAND + 0.5; // 2.5
654+
} else {
655+
// open terrain
656+
output = output + 1;
655657
}
656658

657659
return output;

0 commit comments

Comments
 (0)