This is the scheme of the ap
i use the node.js server for a match-making thing, a queue of users.
var module = D2_match_analyzer; | |
var feeder = { | |
module: module, | |
inQueue: 0, | |
getMatchesForCarry: function(){ | |
var self = this; | |
//check how many are in queue | |
self.inQueue = module.storage.queue.length; | |
if(self.inQueue){ |
This is the scheme of the ap | |
 | |
* * * | |
i use the node.js server for a match-making thing, a queue of users. |
class Fixnum | |
def convert_base(to) | |
self.to_s(to).to_i | |
end | |
end | |
i=1 | |
puts ("Enter input:") | |
input = gets.chomp |
class ConvertBase | |
attr_accessor :input, :result, :binary, :flip, :addOne | |
def initialize input | |
@input = input | |
input = input.to_i | |
remain = input % 256 | |
if remain > 128 | |
remain = -128 + remain % 128 | |
end | |
bin = convertToBinary(remain) |
I'm working on a website(it isn't launched yet) where you can find other players to form a 5 man party | |
###Advantages:### | |
* preassigned role: you select for example MID and the system will find you : 1 carry, 2 supports, 1 offlane | |
* same skill: every one plays their role as good as you play your role | |
* party completetion: you are already are 3 players, the system will find you 2 missing players | |
* Achievements, profile, chat, news feed | |
* 50% winrate no longer enforced by valve (STOMP / 6kmmr) |
I'm working on a website(it isn't launched yet) where you can find other players to form a 5 man party
###Advantages:###
MiTza β 10.06.14 23:57 | |
new sensation | |
MiTza β 00:09 | |
i'm sorry, but I'd bang you so hard :/ | |
Bianca β 00:10 | |
Tel me where and i will come | |
MiTza β 00:11 | |
U from tm ? | |
Bianca β 00:13 | |
Yes of course |
//Match making | |
//send player | |
message1 = { | |
part: 'mm-insert-players', | |
party: false, | |
password: "23WDIOJADWdwadDdwa3", | |
players: [ | |
'32132132151': { | |
rating: 1234, |
describe D2M_Queue do | |
after(:each) do | |
queue.clear | |
end | |
describe '#remove_by_steam_id' do | |
it 'should remove player by steam id' do | |
queue.push(player_1) | |
queue.remove_by_steam_id(player_1.steam_id) | |
expect(queue).to be_empty | |
end |