Coder Social home page Coder Social logo

Longest path strategies about pygemtd HOT 2 OPEN

amarvin avatar amarvin commented on June 22, 2024
Longest path strategies

from pygemtd.

Comments (2)

amarvin avatar amarvin commented on June 22, 2024

I had a thought today to split the rally points (start, waypoint0, waypoint1, ..., waypoint5, end) into two groups (call them A and B), and make a maze that separates the two groups.

The smartest way to separate the rally points then is a max cut of the sequence graph (start -> 0 -> 1 -> 2 -> 3 -> 4 - > 5 -> end). In this case, the optimal max cut is obvious -- group A is (start, 1, 3, 5) and group B is (0, 2, 4, end).

So my proposed maze forces creeps to walk through it to get to waypoint0, then back out of it to get to waypoint1, then through it again to get to waypoint2, etc.

The first step then is to make all group B rally points connected:
image
path length 679

Then I just tried to add as much length to the maze separating the two groups.
image
path length 3361
where the remaining unbuilt green squares are unbuildable, and I don't know why.

from pygemtd.

amarvin avatar amarvin commented on June 22, 2024

Found a few strategies in https://www.reddit.com/r/DotA2/comments/3n7m1f/a_short_kappa_guide_to_gem_td/, and they all use the two-group approach I tried to force the creeps to walk through the entire maze 5 or 6 times.

from pygemtd.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.