entering mittens into a tournament

The CS command is as follows:

  • players - number of registered players *1
  • title - tournament title (this one is 第4回 はこパラ!まー娘カップ)
  • rule - rules, format: starttime,endtime,gametype,minrank,maxrank,minrate,maxrate (0 means no limit for the min/max things)
  • ranking - at the moment this can either be sc5m or sc3m if I recall (best 5 or 3 consecutive scores), or blank for no ranking
  • premiumonly - is the premium client required to play?
  • joinfee - number of days to remove from an ID to play
  • join - 1 if you can join games (in this case, if it has started and you are registered), or 0 if you can't

I am not sure what happens if you queue in a tournament when join is 0. I will have to look into that later. Chances are, though, that mittens will have to be registered for this.

The registration process is similar to the one for registering IDs, controlling tournaments and fetching logs (and probably something else I've forgotten): it's done via http. For tournament registration, it is http://b.mjv.jp/csreg?lobby=1####&uname=ID########-######## where # is whatever. Note that for the lobby argument, if it's a championship lobby (it undoubtedly is), then it is preceded by a 1. In this case, 10022. The end 4 digits are not needed in registration (they're like a password for when you join the lobby and such). Put in your ID and it will give you a response. I tested this with a junk ID with no credit and got:

res=1020

Which means you need more credit. I'm not entirely sure what the res ID will be for success. I'll get back to that when I register mittens.

*1:it's only 11 at the moment because the tournament starts much later; I imagine it will grow by quite a lot