Compare commits

...

2 Commits

Author SHA1 Message Date
Nate Bowman
44f60c891b Add README 2026-11-08 21:30:29 -05:00
Nate Bowman
6680433770 Remove old info from description 2026-11-08 21:19:12 -05:00
2 changed files with 27 additions and 42 deletions

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
Timeline of villager production and gathering for Age of Empires 2.
You can see the `tests/test.py` file for examples of how to use it.
The sofware has been lightly verified (i.e., I ran some tests), but it has not
been validated (i.e., I didn't check that it actually matches AoE2 results).
The code tries to keep you from shooting yourself in the foot. It checks
whether you are housed, do not have enough resource to build what you are
trying to build, etc. There are various known limitations, such as the fact
that farming produces food constantly in the simulator, and there are
undoubtably more checks that I forgot to include.
Why would you need this? Well, say you were trying to develop a new build
order. You could play variations out in the game for maximum accuracy. You
could do simple math by hand or in a spreadsheet to quickly get approximate
answers. Or, you could use a Python library you found online that is probably
clunkier and less accurate than both other options! What's not to love?
With a nice GUI, the software might be somewhat usable, but I doubt I will get
around to that.
Enjoy!
# Data source
My thanks to https://ageofempires.fandom.com/wiki

View File

@@ -1,18 +1,3 @@
# TODO
* Get aoe info
* API for it somewhere?
* Write simple code
* Write tests
* Write GUI
Deal with getting housed
Put villagers on resource sources
* what to do about farms?
* one villager per
* run out occaisionally and must be rebuilt
# Outline
Timeline of villager production
@@ -48,30 +33,3 @@ As an aside,
this is similar to what I've seen described as the fundamental difference
between object-oriented (row-based) and functional (column-based) programming,
though I'm still using classes and objects.
# Scratch
```
def create(self):
self.
# Assume entries sorted by time
# Not necessarily from user, but from queue_villager and move_villager
```
```
Class Task():
requires = {"wood": "lumber camp"}
# what if more villagers than farms?
```
# Assumptions
* Fixed gather rate for each resource
* what about food -- hunt vs farm?
* At least one TC always exists
* Using no civ bonuses for now