Karloid / codeside

Kotlin, Finals-26, Round2-16, Sandbox-24

Home Page:https://russianaicup.ru/profile/karloid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codeside

Kotlin, Finals-26, Round2-16, Sandbox-24

points of interest 📍

core of simulation: https://github.com/Karloid/codeside/blob/master/src/main/kotlin/sim/Simulator.kt#L52

set of strategies to put into simulation: https://github.com/Karloid/codeside/blob/master/src/main/kotlin/core/MyStrategy.kt#L322

simulation's eval function: https://github.com/Karloid/codeside/blob/master/src/main/kotlin/core/MyStrategy.kt#L431

deciding if shoot or not : https://github.com/Karloid/codeside/blob/master/src/main/kotlin/strats/SmartGuyStrategy.kt#L347

SmartGuy behavior: https://github.com/Karloid/codeside/blob/master/src/main/kotlin/strats/SmartGuyStrategy.kt#L37

struggling with decision between SmartGuy and Simulation :D : https://github.com/Karloid/codeside/blob/master/src/main/kotlin/core/MyStrategy.kt#L69

strategy in most cases behaves as SmartGuy to save some time, but in case of danger or if it's stuck the simulation starts

self explosion with mine: https://github.com/Karloid/codeside/blob/master/src/main/kotlin/strats/SmartGuyStrategy.kt#L234

pathfinding: calc next near move point on the way to the destination:

fun getNextMoveTarget(start: Point2D, end: Point2D, extraSpace: Int): Point2D {

pathfinding: calc distance considering obstacles:

fun getPathDistI(a: Point2D, b: Point2D): Int {

About

Kotlin, Finals-26, Round2-16, Sandbox-24

https://russianaicup.ru/profile/karloid


Languages

Language:Kotlin 94.0%Language:Python 4.7%Language:Shell 1.3%