Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a base branch
Nothing to show
Choose a head branch
Nothing to show
Commits on Jul 11, 2015
Commits on Jul 12, 2015
Commits on Jul 13, 2015
Commits on Jul 14, 2015
Commits on Jul 15, 2015
Commits on Jul 19, 2015
Commits on Jul 20, 2015
Commits on Jul 22, 2015
Commits on Aug 05, 2015
Commits on Oct 11, 2015
Commits on Dec 27, 2015
Repoint code.google.com references
code.google.com is shutting down, the 2 projects I imported from there now have
new homes. Update the build so we don't import from there.
Update code for new package layout
Apparently in the new draw2d import, the "draw2d" package has been renamed to
"draw2dimg", so the Travis tests were failing. Repoints the reference, so they
should be passing now.
Commits on May 23, 2016
Use goroutines
This lets us compute fitness (and write track data) on all of the machine's
CPUs instead of just the single CPU. Eyeballing it this makes for a roughly 4x
speed improvement.
Commits on May 24, 2016
Add basic test for generated track
We generated a track that had 25_DEG_UP followed by 3 tile flat left turn,
which shouldn't be possible. Adds a test that rules out that possibility in one
place in the codebase.
Vendor all dependencies
don't have time to do this better, unfortunately
More debugging to find track incompatibility
- Don't cross over with ourself

- Add print line debugging at crossover points
Isolate the failing test
We're not crossing over at 100% Compatible locations, which leads to invalid
tracks being generated.
Commits on May 25, 2016
Commits on Jan 08, 2017
Showing with 12,509 additions and 962 deletions.
  1. +13 −0 .gitignore
  2. +12 −0 .travis.yml
  3. +24 −0 CONTRIBUTING.md
  4. +51 −0 Godeps/Godeps.json
  5. +5 −0 Godeps/Readme
  6. +2 −0 Godeps/_workspace/.gitignore
  7. +12 −0 Godeps/_workspace/src/github.com/golang/freetype/LICENSE
  8. +245 −0 Godeps/_workspace/src/github.com/golang/freetype/raster/geom.go
  9. +287 −0 Godeps/_workspace/src/github.com/golang/freetype/raster/paint.go
  10. +601 −0 Godeps/_workspace/src/github.com/golang/freetype/raster/raster.go
  11. +483 −0 Godeps/_workspace/src/github.com/golang/freetype/raster/stroke.go
  12. +495 −0 Godeps/_workspace/src/github.com/golang/freetype/truetype/face.go
  13. +517 −0 Godeps/_workspace/src/github.com/golang/freetype/truetype/glyph.go
  14. +1,763 −0 Godeps/_workspace/src/github.com/golang/freetype/truetype/hint.go
  15. +289 −0 Godeps/_workspace/src/github.com/golang/freetype/truetype/opcodes.go
  16. +639 −0 Godeps/_workspace/src/github.com/golang/freetype/truetype/truetype.go
  17. +9 −0 Godeps/_workspace/src/github.com/gorilla/handlers/.travis.yml
  18. +22 −0 Godeps/_workspace/src/github.com/gorilla/handlers/LICENSE
  19. +6 −0 Godeps/_workspace/src/github.com/gorilla/handlers/README.md
  20. +82 −0 Godeps/_workspace/src/github.com/gorilla/handlers/compress.go
  21. +356 −0 Godeps/_workspace/src/github.com/gorilla/handlers/handlers.go
  22. +23 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/.gitignore
  23. +2 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/AUTHORS
  24. +18 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/LICENSE
  25. +143 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/README.md
  26. +239 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2d.go
  27. +7 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/README.md
  28. +161 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/curve.go
  29. +89 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/dasher.go
  30. +35 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/demux_flattener.go
  31. +127 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/flattener.go
  32. +58 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/line.go
  33. +193 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/stack_gc.go
  34. +90 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dbase/stroker.go
  35. +8 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dimg/README.md
  36. +46 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dimg/fileutil.go
  37. +328 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dimg/ftgc.go
  38. +30 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dimg/ftpath.go
  39. +151 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dimg/rgba_interpolation.go
  40. +82 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/draw2dimg/text.go
  41. +109 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/font.go
  42. +63 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/gc.go
  43. +222 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/matrix.go
  44. +189 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/path.go
  45. +8 −0 Godeps/_workspace/src/github.com/llgcode/draw2d/test
  46. +1 −0 Godeps/_workspace/src/github.com/pborman/uuid/CONTRIBUTORS
  47. +27 −0 Godeps/_workspace/src/github.com/pborman/uuid/LICENSE
  48. +84 −0 Godeps/_workspace/src/github.com/pborman/uuid/dce.go
  49. +8 −0 Godeps/_workspace/src/github.com/pborman/uuid/doc.go
  50. +53 −0 Godeps/_workspace/src/github.com/pborman/uuid/hash.go
  51. +30 −0 Godeps/_workspace/src/github.com/pborman/uuid/json.go
  52. +101 −0 Godeps/_workspace/src/github.com/pborman/uuid/node.go
  53. +48 −0 Godeps/_workspace/src/github.com/pborman/uuid/sql.go
  54. +132 −0 Godeps/_workspace/src/github.com/pborman/uuid/time.go
  55. +43 −0 Godeps/_workspace/src/github.com/pborman/uuid/util.go
  56. +163 −0 Godeps/_workspace/src/github.com/pborman/uuid/uuid.go
  57. +41 −0 Godeps/_workspace/src/github.com/pborman/uuid/version1.go
  58. +25 −0 Godeps/_workspace/src/github.com/pborman/uuid/version4.go
  59. +27 −0 Godeps/_workspace/src/golang.org/x/image/LICENSE
  60. +22 −0 Godeps/_workspace/src/golang.org/x/image/PATENTS
  61. +202 −0 Godeps/_workspace/src/golang.org/x/image/font/font.go
  62. +172 −0 Godeps/_workspace/src/golang.org/x/image/math/fixed/fixed.go
  63. +22 −0 LICENSE
  64. +21 −7 Makefile
  65. +278 −0 exe_reader/add_comments_to_openrct_coords/ride-tmp.go
  66. +72 −0 exe_reader/print_tracks/main.go
  67. +52 −83 exe_reader/{get_new_track_values.go → track_values.go}
  68. +25 −0 exe_reader/track_values_test.go
  69. +66 −0 genetic/files.go
  70. +171 −77 genetic/{lib.go → genetic.go}
  71. +102 −0 genetic/genetic_test.go
  72. +32 −0 genetic/get_latest_track/main.go
  73. +15 −0 genetic/get_old_experiments/main.go
  74. +0 −38 genetic/lib_test.go
  75. +36 −325 genetic/rct2.go
  76. +208 −10 genetic/rct2_test.go
  77. +8 −3 genetic/{runners → run_experiment}/main.go
  78. +375 −0 genetic/track_completer.go
  79. +133 −36 geo/{lib.go → geo.go}
  80. +211 −0 geo/geo_test.go
  81. +0 −76 geo/lib_test.go
  82. +2 −2 image/2d.go
  83. +69 −0 physics/physics.go
  84. 0 profile/1.profile
  85. 0 profile/2.profile
  86. +151 −19 readme.md
  87. +39 −0 rides/generated_mine_train.go
  88. BIN rides/mine-train-gold-rush.roundtrip-thru-go.TD6
  89. BIN rides/mine-train-gold-rush.roundtrip.td6
  90. BIN rides/mine-train-gold-rush.td6
  91. BIN rides/mine-train-gold-rush.td6.decoded
  92. +56 −0 rides/mine_train.go
  93. +30 −0 rle/decode_td6/decode_td6.go
  94. +26 −0 rle/encode_td6/encode_td6.go
  95. +1 −0 rle/lib.go
  96. +36 −0 scripts/compress.bash
  97. +10 −0 scripts/diff_tracks.bash
  98. +73 −30 server/main.go
  99. +10 −3 server/templates/iteration.html
  100. +0 −1 spatial.go
  101. +191 −62 td6/{lib.go → td6.go}
  102. +20 −0 tracks/branch_factor/main.go
  103. +5 −1 tracks/elements.go
  104. +174 −175 tracks/segment.go
  105. +189 −6 tracks/segmentfns.go
  106. +43 −0 tracks/segmentfns_test.go
  107. +2 −2 tracks/track.go
  108. +11 −6 tracks/track_test.go
  109. +12 −0 wip/inspect_mine_train.go
  110. +19 −0 wip/roundtrip_mine_train.go
View
@@ -1 +1,14 @@
*.png
*.dump
# XXX should compile and run these properly instead of using "go run" so they
# don't leave binaries lying around.
exe_reader/print_tracks/print_tracks
genetic/run_experiment/runners
genetic/run_experiment/run_experiment
genetic/get_old_experiments/get_old_experiments
genetic/get_latest_track/get_latest_track
server/server
rle/decode_td6/decode_td6
rle/encode_td6/encode_td6
tracks/branch_factor/branch_factor
View
@@ -0,0 +1,12 @@
language: go
go:
- tip
- 1.6
- 1.5
- 1.4
script:
- make test
sudo: false
View
@@ -0,0 +1,24 @@
# Contributing
We welcome new contributors! Here is a guide to getting started.
1. Check [the README][readme] - It has useful information about installing the
project, running tests, adding new coasters, what's been done and what needs to
get done.
2. At this point I'm more excited to have people excited about the project than
worries about code style. There is [a test suite up on Travis][travis]. I've
found especially with the track data and directional stuff that adding tests
can help enforce correctness, but I don't care too much.
3. Ask questions! I will literally drop anything I am working on to help you
understand what's going on in the code base and help you to get started with
this project. Contact me at [kev@inburke.com][mailto] or open
an issue here.
4. Not super familiar with Git or pull requests or whatever? Don't worry - just
change the code and email me and I'll help you contribute a patch.
[readme]: https://github.com/kevinburke/rct/blob/master/readme.md
[travis]: https://travis-ci.org/kevinburke/rct
[mailto]: mailto:kev@inburke.com
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

No commit comments for this range