Discuss / Python / 实际应用->炉石传说->爆牌贼伤害计算

### 实际应用->炉石传说->爆牌贼伤害计算

Topic source

#### 回风哥哥

#1 Created at ... [Delete] [Delete and Lock User]

OK,很多时候计算累加伤害靠心算不行的，时间不够，但是如果计算不准确可能导致下回合被对方搞定。

``````#!/usr/bin/env python3
# -*- coding: utf-8 -*-
print('\n没错，死亡计算器，专为爆牌贼编写,快速计算斩杀线！\n')
woundFirst = input('请输入本回合初始疲劳伤害：')
woundCount = input('请输入本回合会造成几次疲劳伤害：')
woundSum = 0
for wound in range(woundFirst, woundCount + 1):
woundSum += wound
nextSum = woundSum + woundCount +1
print('\n---------- Result ----------')
print('\n本回合可造成疲劳伤害：%s' % woundSum)
print('到对手回合开始可造成伤害：%s' % nextSum)
``````

#### 回风哥哥

#2 Created at ... [Delete] [Delete and Lock User]

#### 回风哥哥

#3 Created at ... [Delete] [Delete and Lock User]

``````#!/usr/bin/env python3
# -*- coding: utf-8 -*-
print('\n没错，死亡计算器，专为爆牌贼编写,快速计算斩杀线！\n')
woundFirst = int(input('(Please input first penalty wound)\n请输入本回合初始疲劳伤害：'))
woundCount = int(input('(Please input penalty count this round)\n请输入本回合会>造成几次疲劳伤害：'))
woundSum = 0
for wound in range(woundFirst, woundCount + 1):
woundSum += wound
nextSum = woundSum + woundCount +1
print('\n---------- Result ----------')
print('(Sum wound this round)\n本回合可造成疲劳伤害：%s' % woundSum)
print('(Sum wound the next round begin)\n到对手回合开始可造成伤害：%s' % nextSum)
``````

#### 沉鸢

#4 Created at ... [Delete] [Delete and Lock User]

``````print('\n没错，死亡计算器，专为爆牌贼编写,快速计算斩杀线！\n')
NxtDmg = int(input('Please input the next fatigue damage\n请输入下一次将要造成的疲劳伤害值：'))
DmgCnt = int(input('Please input the fatigue times caused in this round\n请输入本回合造成的疲劳次数：'))
TDmg = 0
for Dmg in range(NxtDmg, NxtDmg + DmgCnt):
TDmg += Dmg
MDmg = TDmg + NxtDmg + DmgCnt
print('\n---------- Result ----------')
print('Total fatigue damage in this round\n本回合可造成疲劳伤害：%s' % TDmg)
print('Total fatigue damage after enemy round begin\n到对手回合开始可造成伤害：%s' % MDmg)
``````

• 1