Removing underscore as a dependency. No longer hacking objects, just indexes.

This commit is contained in:
Elf M. Sternberg 2013-12-04 00:40:10 -08:00
parent eb2184258f
commit 3bfc87f44a
3 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/coffee
io = require "socket.io-client"
_ = require "underscore"
bingo = ["B", "I", "N", "G", "O"]
coors = [0..4]
@ -30,12 +29,12 @@ socket.on "connect", ->
f = (->
for i in coors
for test in [((m, j) -> may m, card[i][j]), ((m, j) -> may m, card[j][i])]
if 5 == _.reduce coors, test, 0
if 5 == coors.reduce test, 0
return true
for test in [((m, j) -> may m, card[j][j]), ((m, j) -> may m, card[j][4 - j])]
if 5 == _.reduce coors, test, 0
if 5 == coors.reduce test, 0
return true
false)()

View File

@ -6,7 +6,6 @@
"repository": "https://github.com/elfsternberg/yahoobingo",
"dependencies": {
"socket.io-client": "~0.9.16",
"underscore": "~1.5.2",
"coffee-script": "~1.6.3"
},
"devDependencies": {},

View File

@ -6,7 +6,6 @@
repository: "https://github.com/elfsternberg/yahoobingo"
dependencies:
socket.io-client: "~0.9.16"
underscore: "~1.5.2"
coffee-script: "~1.6.3"
devDependencies: {}
scripts: