Re: map.find doesn't find



Basically the map.find() method fails to find a match for a key that I
know is in the map. I followed the code to the == operator

That surprises me.
While the general find() algorithm does use the == operator, the built in
find() for map I would expect to use < operator.

Stephen Howe


.



Relevant Pages

  • Re: A dungeon generator
    ... rooms will not fit in the map, so your algorithm will fail. ... each level has 16 possible starting templates. ...
    (rec.games.roguelike.development)
  • Re: one sentence proof of 4 Color Mapping Problem; direct method
    ... for you to determine whether you can color this map with THREE ... So an algorithm for this machine would look ... building the algorithm in P to solve the NP-complete problems, ... Perhaps the equivalency is the idea that Eucl geom is what is ...
    (sci.math)
  • Re: A dungeon generator
    ... then it automatically turns in the former kind of algorithm. ... If it fails to generate a map ... rooms, then after a hundred more fails, five rooms, etc. ... each level has 16 possible starting templates. ...
    (rec.games.roguelike.development)
  • A Random Town Generation Algorithm
    ... I have implemented a random town generation algorithm algorithm. ... Pick a random point close to the centre of the map. ... And do the same for each of the new rectangles created by this until you've reached a minimum size. ... Ideally all these new created subdivisions should be stored in some list. ...
    (rec.games.roguelike.development)
  • Re: Precise Permissive Field of View: Request for comments
    ... that convinced me to use it as a default FOV algorithm in RoguelikeLib:) ... The interface is not yet very swapable, I will work on it with a new version. ... map data structure, it should have a map interface (not necessarily ...
    (rec.games.roguelike.development)

Loading