|
1 | | -# google-hashcode-2018-live-simulation |
| 1 | +<h1 align="center">Google Hash Code 2018 : live simulation</h1> |
| 2 | + |
| 3 | + |
| 4 | +<div align="center"> |
2 | 5 |
|
3 | 6 | [](https://circleci.com/gh/AkselsLedins/google-hashcode-2018-live-simulation) |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +</div> |
| 13 | + |
| 14 | +## Preview |
| 15 | + |
| 16 | +<div align="center"> |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +</div> |
| 21 | + |
| 22 | +## Installation |
| 23 | + |
| 24 | +``` |
| 25 | +$> make deps |
| 26 | +$> make |
| 27 | +``` |
| 28 | + |
| 29 | +## Running |
| 30 | + |
| 31 | + |
| 32 | +| flag | required | explanation | |
| 33 | +|--------|----------|-------------------------------------------------------------------------------------------| |
| 34 | +| -o | :white_check_mark: | path to the output file you have generated with your program during the hashcode | |
| 35 | +| -i | :white_check_mark: | corresponding input file, ex: b_should_be_easy.in | |
| 36 | +| -noGui | | you can run the simulation withtout a graphic interface. This will only output your score | |
| 37 | +| -h | | display help | |
| 38 | + |
| 39 | +#### Example with a Graphic Interface |
| 40 | + |
| 41 | +``` |
| 42 | +$> ./google-hashcode-2018 -o resources/output-files/b.out -i resources/input-files/b_should_be_easy.in |
| 43 | +``` |
| 44 | + |
| 45 | + |
| 46 | +<div align="center"> |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +</div> |
| 51 | + |
| 52 | +#### Example without a Graphic Interface |
| 53 | + |
| 54 | +``` |
| 55 | +$> go run main.go -o resources/output-files/e.out -i resources/input-files/e_high_bonus.in -noGui |
| 56 | +16381105 |
| 57 | +
|
| 58 | +``` |
| 59 | + |
| 60 | + |
| 61 | +## Graphic interface commands |
| 62 | + |
| 63 | +| Command | effect | |
| 64 | +|---------------|---------------------------------------| |
| 65 | +| press "space" | pause / start the simulation | |
| 66 | +| press "t" | shows / hide all the simulation trips | |
| 67 | +| arrow keys | move the camera around | |
| 68 | +| mouse scroll | zoom in/out | |
| 69 | + |
| 70 | + |
| 71 | +## FAQ |
| 72 | + |
| 73 | +### Why ? |
| 74 | +I thought it would be a fun project to practice Go |
| 75 | + |
| 76 | +## Contributing |
| 77 | + |
| 78 | +See <a href="https://github.com/AkselsLedins/google-hashcode-2018-live-simulation/blob/master/CONTRIBUTING.md">Contributing.md</a>. |
| 79 | + |
| 80 | +But basically feel free to contribute if you find something to improve. |
| 81 | + |
| 82 | + |
| 83 | +## License |
| 84 | +[GPL-V3](https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)) |
0 commit comments