Slots
Slots
CC#
Created by Slots on 5/26/2024 in #help
writing a program to calculate losses and victory in a war game for social media
i'm using c# since thats what i know alongside JS, and im attempting to convert string values to an integer for arithmetic to work. it aint doing it, and what ive tried from my documentation hasnt worked. im working on it based off this set of rules: 1 tank does 2000 1 troop does 50 1 artillery does 5000 if a tank or troop is on the offensive, they lose 25% of their hit points, if a tank or troop is on the defensive, they gain 25% more hit points. artillery cannot be on the offensive, and is locked to defensive. 1 tank has 4000 hit points, 5000 when on defense, 3000 when on offense 1 troop has 100 hit points, 125 when on defense, 75 when on offense 1 artillery has 250, as it is locked to defensive thank you!
80 replies
CC#
Created by Slots on 1/28/2024 in #help
Dont know what i did, program now giving CS0101 and CS0111 errors.
No description
31 replies