Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The first color is #015.

Regarding computing it for all targets, I optimized it by precomputing the value of guessResults in the first iteration, since it's always the same (no matter the target color), which saves most of the computation. I removed the optimization so the code wouldn't be so long here.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: