going-rogue/erynrl/map
Eryn Wells 635aea5e3b Add cellular atomata to the map generator finally!
Use the new map generator mechanism to generate rooms via cellular
atomata. Create a new CellularAtomatonRoomMethod class that uses
the Cellular Atomton class to create a room. Add a FreefromRoom class
that draws a room based on an ndarray of tiles.

Along the way I discovered I have misunderstood how numpy arrays
organize rows and columns. The numpy array creation routines take an
'order' argument that specifies whether arrays should be in C order (row
major) or Fortran order (column major). Fortran order lets you index
arrays with a more natural [x, y] coordinate order, and that's what the
tutorials I've read have shown. So I've been using that. When I was
developing the Cellular Atomaton, I wrote some code that assumed row-
major order. I think I want to move everything to row-major / C-style,
but that will take a bit more time.
2023-03-05 18:40:02 -08:00
..
generator Add cellular atomata to the map generator finally! 2023-03-05 18:40:02 -08:00
__init__.py Raise exceptions for out-of-bounds points that are passed into Map helper methods 2023-03-05 13:36:32 -08:00
grid.py Document map.grid 2023-03-05 13:36:04 -08:00
room.py Add cellular atomata to the map generator finally! 2023-03-05 18:40:02 -08:00
tile.py Add a bunch of doc strings and header comments to files 2023-02-15 08:25:40 -08:00