michaeljb / 18xx.games

Other
0 stars 0 forks source link

more hashmaps and less arrays #43

Open michaeljb opened 2 years ago

michaeljb commented 2 years ago

lots of stuff like looking through lists of stops or all the hexes on the map or all the tiles in the game to find/delete/etc the match in O(N) time, should do some profiling and see if using more Hashes helps performance

michaeljb commented 2 years ago

TileTray class could implement an interface to match the currently expected Array interface for a game's @tiles while internally using hash