This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from api import * | |
import utils | |
import timeutils | |
import random | |
#Strategie d'attaque | |
#`targets` contient les cibles potentielles : au debut ca contient les tuyaux directement a cote de la base adversaire, puis un echantillon aleatoire de tuyaux de l'adversaire | |
#La fonction score est assez lente (j'ai mesure environ 0.05s) donc il y a des risques de timeout que le code anticipe | |
def attack(hm): | |
if points_action() < COUT_DESTRUCTION: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>+>>+>>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+++>+>++>+>+>+>+>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>+>+>>+>>+>+>+>+>+>+>+>+>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>++>+>+++++>+>++++>+>++>+>+>+>+>+>>+>+>+>>+>+>+>+>+>+>+>>+>+>+>>+>>+>+>+>>+>+>+>>+>+>+>>+>+>+>+>+>+>+>>+>+>+>>+>+>+>+>+>+>+>+>+>+>+>>+>+>+>>+>+++++>+>+++++>+>+++++>+>+++++>+>>+>+>+>>+>+>+>+>+>+>+>+>+>>+>+>+>>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+++>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>++>+>+++++>+>++++>+>>+>>+>>+>+>+>++>+>++>+>+++++>+>++>+>++>+>++>+>+++>+>++>+>++>+>++++>+>++>+>++>+>+++>+>++>+>++>+>++++>+>+>+>>+>>+>+++>+>++>+>++>+>+++++>+>>+>>+>+++++>+>>+>>+>+++>+>>+>>+>++++>+>>+>>+>+++>+>>+>>+>++++>+>>+>>+>>+>+++>+>>+>>+>>+>++++>+>++>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+++>+>++>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>>+>>+>>+>+>+>+>+>+>+>+>+>+>+>+>+>>+>>+>>+>+>+>+>+>+>+> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; +>+<[>>>>>>++++++[>++++++++<-]<+[-<[>++++++++++<-]>[<+>-]+> | |
;; [<<+> >-],> [<->>+ <-] >[<+>-]<<<->[>>+> +< | |
;; <<-]> >[<<+ >>-]++ +++ +++++[->>+<[>-] >[ | |
;; << <<< +>> >>>->]<<-<]>[- ]<<<<] | |
;; >[ -]> [-] <<<<+<<[>>>[<< <<+>>>> | |
;; -] <-< <-] >>[-<[>+>>>+<< <<-]>[<+ | |
;; >-]>[ <+>>> >+<<<- ]<[ >+<-]<<+[->[ >>[< | |
;; <<+>> >[>+< -]]>[< +>- ]<<< [>+< | |
;; -]]>[ <+>-] >-<<-< ]>+ [-]>> +[>>[-]> | |
;; [< +>- ]<< <[-]]> >>[- ]<[<<<<+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> | |
>+[[-]+>>>+>++>- >++> ->+>+>+>>+++>+++ ++[<<< < | |
<<<<++ ++++> >+ ++>>>>++>++++++>-] >>+<<, [>> | |
-<<[> +<-]] >[<+>- ]>[<< <[<]<< ->> | |
>[>] >>-]< +++++ ++++[ <<[ | |
>-<- ]>>>+ <<[> >-<<[<+>- ]]<[>+<-]>>> [-<<< <[< ]>[<+>-] >[>]> >>]< <<<[ <]<+>>[>]>[<+>- ]>[<+ >-]<- ]<[ | |
-]+< <[-]> [>-<<<[-]>>[-]]>[ [-]<[ -]<< [> |