Part 4/7:
The initial card selected is a formidable tank that prioritizes hitting buildings. To create a functioning bot for gameplay, the programmer begins by establishing a script that can detect the game's state and register when matches start and end. This involves taking screenshots and analyzing various game elements.
As the programmer refines the script, the bot learns to strategically place the selected card on the gaming field while introducing randomization to its placement. This random element is crucial, as it prevents detection by the game’s anti-cheating algorithms—no human player consistently places cards in the same locations.