随机对手匹配器
随机配对对手的流星包。
这个包有一个很好的接口,但实现很差。 如果我以后觉得有必要,我会花时间改进它。 如果您现在需要进行改进,请随时自行完成。
##Guide 在服务器上,你需要做这样的事情:
var name = 'my-name' // The corresponding matcher on the client should have the same name.
var algorithm = { // This is the only one available at the moment.
name : 'fifo'
}
var onMatch = function ( user1 , user2 ) {
// Gets called when two users been matched to play against each other.
评论0
最新资源