Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.35 KB

File metadata and controls

51 lines (42 loc) · 1.35 KB

HashCode2016

Artificial Intelligence course project based on the HashCode 2016 problem

Requirements

  • Jinnja2
    • pip install Jinja2 (may require sudo)

If you want to use Docker

Make sure you have already installed both Docker Engine and Docker Compose. After that:

  • create the image once and for all (about 600MB):

    cd HashCode2016
    docker build --tag=hashcode2016 .
  • run the VM:

    1. run the service detached:

      docker-compose up -d
      docker ps # check the container status
    2. attach the container with a shell and test the solver:

      docker ps # look for the cointainer name
      docker exec -it hashcode2016_hc_1 /bin/bash
      cd project
      python src/scripts/execute.py test
      exit # stop the container, otherwise use Ctrl-p Ctrl-q

Input Generator

Usage

Requires the args:

  • map rows
  • map cols
  • drones number
  • max turns
  • drones payload
  • products number
  • warehouses number
  • orders number

After the execution it will output a file in ./in/generated.in.

Example

$ python src/generate_input.py 50 50 10 500 250 5 3 3