Some context on the competition:
We are given a list of pre-booked rides in a city and a fleet of self-driving vehicles. The objective of the competition is to assign the rides to vehicles, so that riders get to their destinations on time.
Important: we are only showing the assigned trips. If you press [T] you can toggle off/on the unassigned ones.
$> make deps
$> make
- OpenGL see github.com/faiface/glhf
- github.com/faiface/pixel
- github.com/go-gl/glfw/v3.2/glfw
go>=1.8.1
flag | required | explanation |
---|---|---|
-o | โ | path to the output file you have generated with your program during the hashcode |
-i | โ | corresponding input file, ex: b_should_be_easy.in |
-noGui | you can run the simulation withtout a graphic interface. This will only output your score | |
-h | display help |
$> ./google-hash-code-2018 -o resources/output-files/b.out -i resources/input-files/b_should_be_easy.in
$> go run main.go -o resources/output-files/e.out -i resources/input-files/e_high_bonus.in -noGui
16381105
Command | effect |
---|---|
press "space" | pause / start the simulation |
press "t" | shows / hide all the simulation trips |
arrow keys | move the camera around |
mouse scroll | zoom in/out |
I thought it would be a fun project to practice Go
See Contributing.md.
But basically feel free to contribute if you find something to improve.