@author: Mond Wan
This is a project for manipulating attack list from tb (travian builder).
At first, repository py-sort_attack_list covers sorting feature I need. However, after several days, I found that I need more than sorting.
In order to keep and organize my codes better, here is another repository which stores codes for manipulating the attack list from tb
# Clone this repository
$> git clone https://github.com/mondwan/py-tb_attack_list
....
# Define your filtering algorithm in config.ini:
# For example, position, filter's algorithms etc
# Execution
$> python main.py \
--config <PATH_TO_YOUR_CONFIG.INI> \
--input <PATH_TO_YOUR_INPUT_ATTACK> \
--output <NAME_OF_YOUR OUTPUT_FILE>
# For example
# python main.py --config config.ini \
--input tests/data/test_filter_error_input.attack \
--output tests/output/test_filter_error_output.attack
# Place the output back to travian builder folder (/sdcard/TravianBuilder)
# Import this list
# Enjoy
Sort the attack list based on distance between the target and the position we input
There are several algorithms for filtering targets.
- By target position
Duplicated targets, identified by position, with same position will be deleted
- By troop's type
Targets with same type of troops will be deleted. This one is good for deleting targets which attacked by certain type of troops
NOTE1: Each of the combination of troops is treated as one special type
- By troop's type and position
Mixed version with above 2 filtering algorithms
- By error
Targets with errors like getting locked will be deleted