Compare commits
2 Commits
9ccf25f0ab
...
44f60c891b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44f60c891b | ||
|
|
6680433770 |
27
README.md
Normal file
27
README.md
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user