Skip to content

ddorn/CotC

Repository files navigation

CotC

Code for CodinGame (pseudo : Jarjar1er)

Referee

####Utilisation

world = get_world()
actions = [(Action.WAIT, None), (Action.FIRE, Coord(5, 9)]  # list of tuples (action, target)
world.prepare()
world.set_actions(0, actions)  # adds actions for the ennemy
world.set_actions(1, actions)  # adds actions for you
world.update()  # simulate the turn

Known bugs

  • If a ship takes a mine, it's destroyed.

Do not hesitate to contact me (Je parle français !) to show a bug, sugest an optimisation, thanks me or just talk :D

Graphic

Dependances

This works with pygame, if you have troubles installing it, try this.

Commands
  • R creates a new random world
  • RIGHT makes actions (they're hardcoded) and updates this world
  • LEFT goes back in the history of what you simulate. Yes, it's a time machine.

About

CodinGame codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages