Commit Graph

8 Commits

Author SHA1 Message Date
Elf M. Sternberg 72dcd58784 Improve readability; fix end-state handler.
Fixed end-state handler to stop taking Ball messages when end-state
detected.  Looking at Yahoo's results board, failing at this could
result in the system looking as if I had poor win-state detection.

Fixed win-state detection to enclose the card matrix.  This makes the
coordinate tests look like it takes coordinate pairs, which is the
effect we want, improves readability, and reduces errors.
2013-12-04 12:17:48 -08:00
Elf M. Sternberg 0de8d83595 Changed initial state to 'playing', so that we don't assume a broken connection is automatically a lost game. 2013-12-04 00:44:11 -08:00
Elf M. Sternberg 3bfc87f44a Removing underscore as a dependency. No longer hacking objects, just indexes. 2013-12-04 00:40:10 -08:00
Elf M. Sternberg eb2184258f Stupid mistake when renaming functions. Fixed. 2013-12-04 00:33:44 -08:00
Elf M. Sternberg 17c8a86bb8 Consistent quotes. I prefer doublequotes as Coffeescript assigns
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.
2013-12-04 00:26:06 -08:00
Elf M. Sternberg 173727ef39 Updated with Github info and Coffeescript dependency. 2013-12-03 23:54:14 -08:00
Elf M. Sternberg 32a9e90226 Adding perquisites. 2013-12-03 23:45:49 -08:00
Elf M. Sternberg a2e22aba27 Bingo client. 2013-12-03 17:19:13 -08:00