Elf M. Sternberg
17c8a86bb8
them a consistent meaning. Changed the 'BINGO' algorithm to use just numeric coordinates, converting exactly once from the BINGO to 0..4. Changed the test-if-won algorithm to create scoped tests with consistent signatures. This let me catch an error I missed with the first pass. |
||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
bingo.coffee | ||
package.json | ||
package.yml |
README.md
Yahoo's running this contest. Read about it here: http://yahoobingo.herokuapp.com/
This took me about 40 minutes, total. I was thinking about re-writing this in Bacon, but my Bacon is pretty raw. At best, I could propertize the cards to create a new card (i.e. a new state) every time a ball came in, but that seemed a little overwrought.
I'm sad that it requires underscore, but Node's native reduce doesn't support object iteration, only arrays.
It was nice to have an opportunity to hack Coffee and Node again.