Giter VIP home page Giter VIP logo

py-tb_attack_list's Introduction

About

@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

Usage

# 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

Features

Sorting

Sort the attack list based on distance between the target and the position we input

Filtering

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

py-tb_attack_list's People

Contributors

mondwan avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.