Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ Welcome to PPCG! I went ahead and uploaded a P3 PPM version of the original image to a GitHub Gist, so I'll edit the link into your post for you. \$\endgroup\$ Commented Jan 26, 2016 at 5:23
  • 4
    \$\begingroup\$ +1 for using a genetic algorithm. I'm hoping that a GA will eventually win this challenge. \$\endgroup\$ Commented Jan 26, 2016 at 5:34
  • \$\begingroup\$ You can get a couple more bytes by losing the "#include <fstream>" and using "std::cerr << p" at the end. \$\endgroup\$ Commented Jan 26, 2016 at 17:17
  • \$\begingroup\$ @Eponymous Thanks, yea there are other things that can really tighten it up, (e.g. the color structure can be declared i r,g,b instead of separately, and a lot of spaces can be discarded). I wasn't sure if the program should generate the file directly or if piping to stdout/stderr was okay. \$\endgroup\$ Commented Jan 26, 2016 at 17:20
  • \$\begingroup\$ Why a space in #include <fstream>? Also, drop the newlines and put it all on one line since C++ needs semicolons anyways \$\endgroup\$ Commented Mar 27, 2016 at 0:42