The Bytecode Club - Reverse Engineering Forum
TH sniping algorithm suggestion - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: TH sniping algorithm suggestion (/showthread.php?tid=710)



TH sniping algorithm suggestion - Andrei1801 - 02-10-2015

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.


RE: TH sniping algorithm suggestion - reztars - 02-10-2015

nice!
but I think 1 spot will easy to kill by mortar or any splash damage Facelineside


RE: TH sniping algorithm suggestion - Andrei1801 - 02-10-2015

true, I didn't think of that. troops should be deployed on a wider area to distract splash damage, not just around TH.


RE: TH sniping algorithm suggestion - reztars - 02-11-2015

you think we must training fully army to hit 1 outside TH?


RE: TH sniping algorithm suggestion - Andrei1801 - 02-12-2015

(02-11-2015, 02:02 PM)reztars Wrote:  you think we must training fully army to hit 1 outside TH?

The point of this algorithm is to try and use only a few archers for sniping TH and to deploy more troops in case that fails. Perhaps it can be done in 3 or more troop waves, not necessarily full army from the 2nd wave, perhaps it could have an UI option to adjust the number of troop waves. At lower leagues you can use just a few archers to snipe, but after crystal II, it's really hard to find an outside TH without tons of traps and mortars, etc around it.