Safe HaskellSafe

BotHugo183

Contents

Synopsis

Documentation

tuning :: Int #

velocidadeJogador :: Jogo -> Int -> Double #

bot #

Arguments

:: Tempo

tempo decorrido desde a última decisão

-> Jogo

estado atual do jogo

-> Int

identificador do jogador dentro do estado

-> Acao

a decisão tomada pelo bot bot tick jogo p | vaiMorrer caganco tick jogo p = (travagem . rotacao) quieto | otherwise = (aceleracao . rotacao) quieto

aumentaVelocidade :: Double -> Jogo -> Tempo -> Int -> Acao -> Acao #

estabilizaVelocidade :: Double -> Jogo -> Tempo -> Int -> Acao -> Acao #

emRampa :: Jogo -> Int -> Bool #

compareSndDistort :: Double -> (a, Ponto) -> (a, Ponto) -> Ordering #

neg :: Num a => a -> a #

distortVectorToAngle :: Double -> Ponto -> Double #

colideT4Batota :: Bool -> Jogo -> Tempo -> Tempo -> Int -> Maybe Carro #

colideT4 :: Bool -> Maybe Int -> Jogo -> Tempo -> Tempo -> Int -> Maybe Jogo #

vaiMorrer :: Bool -> Tempo -> Tempo -> Jogo -> Int -> Bool #

vaiColidir :: (Ponto -> Ponto -> Bool) -> Bool -> Tempo -> Tempo -> Jogo -> Int -> Bool #

menorAngulo :: Double -> Double -> Bool #

absAngulo :: (Ord t, Num t) => t -> t #

apontaPara :: [(Peca, Posicao, Orientacao)] -> Int -> Tempo -> Jogo -> Int -> Double #

contrariaPara :: [(Peca, Posicao, Orientacao)] -> Int -> Tempo -> Jogo -> Int -> Double #

ajustaDirecaoCarro :: Jogo -> Carro -> Tempo -> Double -> (Maybe (Acao -> Acao), Double) #

maisCurto :: (t, Double) -> (t1, Double) -> Ordering #

linhaRecta :: Jogo -> Tempo -> Int -> (Double, Double) -> Bool #

getScore :: Jogo -> Int -> Int #

proximasPecas :: Jogo -> Int -> (Int, [(Peca, Posicao, Orientacao)]) #

fst3 :: (t, t1, t2) -> t #

snd3 :: (t, t1, t2) -> t1 #

Ações

turbina :: Int -> Acao -> Acao #

compareSnd :: Ord b => (a, b) -> (a, b) -> Ordering #

cosDegrees :: Floating a => a -> a #

sinDegrees :: Floating a => a -> a #

mapSnd :: (t2 -> t1) -> (t, t2) -> (t, t1) #