Skip to content

Semooze/strategyGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

strategyGame

###This program simulate strategy game

you have some soldiers (mySoldiers).each soldier has 1 hit point
your enemy has no soldier but they have forts(numB)
each fort has helth point(hpB) and can kill soldiers equal (attackB) person.
in each turn soldiers will attack forts then forts will attack soldiers back.

function return least turn that soldiers use to break up all forts.
if your enemy win return -1

##Rule##

  • mySoldiers value is in range 1-100000
  • hpB, attackB, numB values are in range 1-10000

##Compile##

gcc -lm -o strategy strategyGame.c

##Run##

./strategy

About

function simulate strategy game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages