Skip to main content

Algorithms for TW

Project description

TW Complex

Repo with algorithms to divide ally villages into front and back in TW.

Underneath it is a problem of dividing a set of 2D points A according to the min_radius and max_radius distances from a set of other 2D points B, which can be solved most simply by counting the distances from each point in the first set A to all points in the second set B one by one.

Examples (before -> after)

Example 1

Ally: 10000 points
Enemy: 15000 points
min_radius: 1.4
max_radius: 2

example1

Example 2

Ally: 2500 points
Enemy: 6000 points
min_radius: 4
max_radius: 10

example2

Example 3

Ally: 20000 points
Enemy: 20000 points
min_radius: 20
max_radius: 60

example3

Example 4

Ally: 20000 points
Enemy: 20000 points
min_radius: 10
max_radius: 120

example4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tw-complex-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

tw_complex-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file tw-complex-0.1.0.tar.gz.

File metadata

  • Download URL: tw-complex-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for tw-complex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4eebefe62ebf45d00df752ca66becaf7338629e4a1089d2dbdc42860101a3fd2
MD5 3b5c1602d5cc5931c0f6a6af364654e0
BLAKE2b-256 94151aa0f01b8ef65c00a6e3a6e267665c8e6764f15269f89df6a1a7e2dc631a

See more details on using hashes here.

File details

Details for the file tw_complex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tw_complex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for tw_complex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9180319f3c587142f26d3e38ea02b47d0b802990f69384742b38ef3bb0f9a6
MD5 bbf028777436d9fd2d7520fc95fc81ab
BLAKE2b-256 1681d73e813f74a435b0e0f8f8c3ec39d2b60cca78bdcc5b7411362b9d6353d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page