zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 48 forks source link

Question: Is it possible to detect "practice room"? #153

Open Kimi-Arthur opened 10 years ago

Kimi-Arthur commented 10 years ago

Hi, one thing I was thinking these days is to put code + problem in different folders for different types of problem. Namely, put practice room problems in one place and the real contest problems in another. Will that be possible?

ashashwat commented 10 years ago

It already does so. Practice room are abbreviated as SRM X, while real contest are named as Single Round Match X.

screenshot 2014-07-03 00 57 00

vexorian commented 10 years ago

It is completely unintentional though, it is because of how practice rooms are named vs. real contest rooms.

On Wed, Jul 2, 2014 at 3:29 PM, Shashwat Anand notifications@github.com wrote:

It already does so. Practice room are abbreviated as SRM X, while real contest are named as Single Round Match X.

[image: screenshot 2014-07-03 00 57 00] https://cloud.githubusercontent.com/assets/121233/3461138/0ebc02a4-021f-11e4-9e0c-c2af52fa4b8a.png

— Reply to this email directly or view it on GitHub https://github.com/shivawu/topcoder-greed/issues/153#issuecomment-47824236 .

Kimi-Arthur commented 10 years ago

Yes, I know the difference, but since I’d like to put them in different folders like “Practice Room/SRM xxx” vs “Contests/Single Round Match XXX”, I don’t whether this is possible.

Do the plugin has any other information? Like contest id or contest type?

From: vexorian [mailto:notifications@github.com] Sent: Thursday, July 3, 2014 03:30 To: shivawu/topcoder-greed Cc: Kimi-Arthur Subject: Re: [topcoder-greed] Question: Is it possible to detect "practice room"? (#153)

It is completely unintentional though, it is because of how practice rooms are named vs. real contest rooms.

On Wed, Jul 2, 2014 at 3:29 PM, Shashwat Anand <notifications@github.com mailto:notifications@github.com > wrote:

It already does so. Practice room are abbreviated as SRM X, while real contest are named as Single Round Match X.

[image: screenshot 2014-07-03 00 57 00] https://cloud.githubusercontent.com/assets/121233/3461138/0ebc02a4-021f-11e4-9e0c-c2af52fa4b8a.png

— Reply to this email directly or view it on GitHub https://github.com/shivawu/topcoder-greed/issues/153#issuecomment-47824236 .

— Reply to this email directly or view it on GitHub https://github.com/shivawu/topcoder-greed/issues/153#issuecomment-47824348 . https://github.com/notifications/beacon/2446305__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTk0ODYxNywiZGF0YSI6eyJpZCI6MzU4MjIwODl9fQ==--2486824ba81bcc0a5058a71ce9db888a952df8a2.gif

ashashwat commented 10 years ago

I don't think arena API exposes any information regarding practice rooms. This should not stop you from writing a shell script which does the job.

Kimi-Arthur commented 10 years ago

So can we get the id? Since I may need the id to decide its type. 2014-7-3 下午3:16于 "Shashwat Anand" notifications@github.com写道:

I don't think arena API exposes any information regarding practice rooms. This should not stop you from writing a shell script which does the job.

— Reply to this email directly or view it on GitHub https://github.com/shivawu/topcoder-greed/issues/153#issuecomment-47874327 .