jpeterbaker / maxfield

Code for maximizing the Ingress fields on a given set fo portals
GNU General Public License v3.0
165 stars 56 forks source link

Bug: Incorrect direction on some links #40

Open roncli opened 7 years ago

roncli commented 7 years ago

See https://gist.github.com/roncli/91abc2ae7049cf2e70f54f626045eacd for the input and link output.

Specifically, I want to focus on these links:

  41  ____1   15 Twin Pines Park Lion Sculpture
              19 The Book Nook

  42  ____1   17 Twin Pines Park Dedication Sto
              19 The Book Nook

  43  ____1   14 Carved Tree Sculpture
              19 The Book Nook

41 creates the link, and the ensuing field encloses Twin Pines Park Dedication Stone and Carved Tree Sculpture. However, the program now wants me to throw links 42 and 43 to The Book Nook from INSIDE the field, whereas throwing it from the Book Nook is the only way to make the fields, because The Book Nook is on the edge of any fields, whereas the other two are inside fields.

So, links 42 and 43 need to be thrown from The Book Nook, not from the other portals. I'm not sure why the program did not catch this.

Otherwise, the plan worked great.