mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Fixed the bug that boats could round over a gate but still "across" it. Added unit test to ensure the algorithm works.
tags: #story[1124]
This commit is contained in:
@@ -177,7 +177,7 @@ public class Yacht {
|
||||
|
||||
if (GameState.getMarkOrder().isLastMark(currentMarkSeqID) || currentMarkSeqID == 0) {
|
||||
if (GeoUtility.checkCrossedLine(currentMark.getSubMark(1),
|
||||
currentMark.getSubMark(2), lastLocation, location)) {
|
||||
currentMark.getSubMark(2), lastLocation, location) > 0) {
|
||||
System.out.println(
|
||||
"(" + currentMarkSeqID + ") Passed gate: " + currentMark.getMarks().get(0)
|
||||
.getName()
|
||||
|
||||
Reference in New Issue
Block a user