Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TH sniping algorithm suggestion
#1
Lightbulb 
Hey guys, I will post here an algorithm suggestion in pseudocode, I don't know much about AutoIT. I got the idea while reading aras' suggestion .
This algorithm is meant for a shot at conserving troops while trophy pushing.

Code:
if TH = top corner
then use snipe_algorithm1

elseif TH = left corner
then use snipe_algorithm2

elseif TH = right corner
then use snipe_algorithm3
endif

sample sniping algorithm:
Code:
Deploy 15 archers on the edge of the map
sleep 5000
while !1star and goldchange
sleep 500 ; waits for 1 star or gold unchanged (archers dead)
if 1star then surrender and restart bot
elseif !goldchange then exitloop

Deploy all troops around the townhall
while !1star
sleep 500 ; waits for 1 star
if 1star or timeout then surrender and restart bot

Basically what this would do is try to kill a townhall sitting in the corner with only 15 archers positioned right on the corner of the map so that teslas don't react. If it fails, it deploys all remaining troops around the townhall to try and kill teslas and other traps.

The downside is that it only works if townhall is in the corner and it may take hundreds of skips to find one in crystal league, but at least it tries to skip troop training time.
Reply
 


Messages In This Thread
TH sniping algorithm suggestion - by Andrei1801 - 02-10-2015, 09:16 AM
RE: TH sniping algorithm suggestion - by reztars - 02-10-2015, 12:09 PM
RE: TH sniping algorithm suggestion - by reztars - 02-11-2015, 02:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website