CTK calculator
Moderator: Forum Moderators
CTK calculator
I'm makeing a CTK calculator
the calculator work:
input:can attack units
input:can attack units damage and attacks
input:defencer's hp,defence
input:can attack defencer hexs
output:attacker High CTK for defencer
code in attachment
I'm stuck while writing calculation code,need help.
the calculator work:
input:can attack units
input:can attack units damage and attacks
input:defencer's hp,defence
input:can attack defencer hexs
output:attacker High CTK for defencer
code in attachment
I'm stuck while writing calculation code,need help.
- Attachments
-
- UnitsHighCTKv0.1.cpp
- (1.14 KiB) Downloaded 88 times
- Pentarctagon
- Project Manager
- Posts: 5584
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: CTK calculator
What exactly do you need help with?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: CTK calculator
calculation code,i don't know how calculation data
- Pentarctagon
- Project Manager
- Posts: 5584
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: CTK calculator
That'd just be calculating the chance of each possible outcome and then the CTK is the sum of the outcomes that result in the unit have 0 or less hp.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code