mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
grammar nit
This commit is contained in:
@@ -94,7 +94,7 @@ public class Splat {
|
|||||||
return Math.sqrt(2 * initial.getAltitude() / A);
|
return Math.sqrt(2 * initial.getAltitude() / A);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the number of jumps that this jump was better than
|
// Returns the number of jumps for which this jump was better
|
||||||
private int countWorseHistoricalJumps(JumpResult jump) {
|
private int countWorseHistoricalJumps(JumpResult jump) {
|
||||||
return (int) pastSuccessfulJumpDistances.stream()
|
return (int) pastSuccessfulJumpDistances.stream()
|
||||||
.filter(distance -> jump.getDistance() < distance)
|
.filter(distance -> jump.getDistance() < distance)
|
||||||
|
|||||||
Reference in New Issue
Block a user