Mono player

5 views
Skip to first unread message

Krzysztof Mierzejewski

unread,
Jan 24, 2012, 4:29:22 AM1/24/12
to Queue-ICPC
Hi guys,

any experience regarding submitting mono player? I've created one,
locally everything works perfectly fine. The point is that when I
submit the player it does literally nothing. Although there are no
compilation errors all the moves are missed... has anyone encountered
such situation before and know the remedy?

I have tried:
- make use of some debug messages by
System.Diagnostics.Trace.WriteLine and adding Console.Error to the
Trace Listeners. Locally it works as expected but in the match results
I can see no debug messages...
- so I disabled System.Diagnostics.Trace, still the same, all the
moves are skipped...
- so I do not specify any namespace of all my code (what? The model
mono player looks just like that...) and still the same - locally is
perfectly fine (I use both, mono 2.4.3 and .NET Framework under
Windows), still the same.

I would appreciate if someone has a clue why it may be happening, or
maybe just how to trace debug messages of the submitted players?

Regards,
Chris

spongman

unread,
Jan 24, 2012, 2:19:48 PM1/24/12
to Queue-ICPC
weird.

i'm using C# for my player.
I'm using Visual Studio to edit & test the code locally, though. i
haven't tried using Mono locally.
I have multiple namespaces.
I'm using the following for trace output:

#if DEBUG
Debug.Listeners.Add (new TextWriterTraceListener (Console.Error));
#endif

so it's disabled during the actual run. I do all my debug output with
Debug.WriteLine().

maybe your code isn't handling the input correctly?


On Jan 24, 1:29 am, Krzysztof Mierzejewski <mier...@mierzej.com>
wrote:

Hogan

unread,
Jan 24, 2012, 2:26:24 PM1/24/12
to Queue-ICPC
I'm also editing local with VS but then I compile the files via mono.

I've had no problems -- I even submitted a player with
Error.WriteLine(string); in it. I didn't see the output on the
results page but it seemed to work fine. (Except that one match I
lost, grrrr).

I was careful to always include the .cs file with the main function as
the first file. Maybe this is the problem?


On Jan 24, 4:29 am, Krzysztof Mierzejewski <mier...@mierzej.com>
wrote:

Hogan

unread,
Jan 24, 2012, 2:28:10 PM1/24/12
to Queue-ICPC
I had "Console.Error.WriteLine(string);" statements.

spongman

unread,
Jan 24, 2012, 4:04:56 PM1/24/12
to Queue-ICPC
On Jan 24, 11:26 am, Hogan <hoganl...@gmail.com> wrote:
> I was careful to always include the .cs file with the main function as
> the first file.  Maybe this is the problem?

i haven't ever put the Main class 1st, and i have had no problem.
Reply all
Reply to author
Forward
0 new messages