Skip to main content

A package used to calculate the strength of the ddtank game.

Project description

ddtcurve

一个用于计算弹弹堂游戏力度的软件包。

A package used to calculate the strength of the ddtank game.


快速开始

1.传统方式计算力度

本方法是在 https://www.52pojie.cn/thread-1132459-1-1.html 基础上的改良。

import ddtcurve as ddtc

result = ddtc.predict(65, 0, 10, 0)
print(result)

result = ddtc.predict(65, 1, 10, 0)
print(result)

result = ddtc.predict(65, 0, 10, 1)
print(result)

Output:

56.984355730170684
54.693446341504185
58.14777549325182

2.深度学习推理力度

方法详见 https://www.52pojie.cn/thread-1889310-1-1.html

import ddtcurve as ddtc

result = ddtc.inference(65, 0, 10, 0)
print(result)

result = ddtc.inference(65, 1, 10, 0)
print(result)

result = ddtc.inference(65, 0, 10, 1)
print(result)

Output:

57.528175
53.786335
59.91937

Remarks:

There are many authors who have contributed to this package. :)

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

ddtcurve-0.2.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

ddtcurve-0.2.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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