Playing back results

5 views
Skip to first unread message

Sk3ptic

unread,
Jan 31, 2012, 2:26:22 PM1/31/12
to Queue-ICPC
Hi guys, I don't know much about java how do I playback results. Can
someone give me the one line command

This was my guess?

java icpc.challenge.view.TurnPlayer -turns ./results/turns.txt -
classpath coercion.jar


java icpc.challenge.view.TurnPlayer -turns ./results/turns.txt -
classpath coercion.jar
Exception in thread "main" java.lang.NoClassDefFoundError: icpc/
challenge/view/TurnPlayer
Caused by: java.lang.ClassNotFoundException:
icpc.challenge.view.TurnPlayer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: icpc.challenge.view.TurnPlayer.
Program will exit.
make: *** [play1] Error 1

Sk3ptic

unread,
Jan 31, 2012, 2:30:52 PM1/31/12
to Queue-ICPC
actually the following almost works?

java -classpath ./coercion.jar icpc.challenge.view.TurnPlayer -turns ./
results/turns.txt

still don't see movement, the results file I downloaded from website
might be in the wrong format?

Sk3ptic

unread,
Jan 31, 2012, 2:43:18 PM1/31/12
to Queue-ICPC
Okay I figured out the one liner is:

java -classpath ./coercion.jar icpc.challenge.view.TracePlayer -
trace ./results/turns.txt

Dean H.

unread,
Jan 31, 2012, 4:04:49 PM1/31/12
to Queue-ICPC
In case you didn't already see it, there is a -speed VALUE option that
allows you to adjust playback speed. It behaves exactly the opposite
of my expectation: the higher the VALUE, the slower the playback. If
you use -speed 2, the playback is half speed; use -speed 10 for one-
tenth normal speed, etc.

Mike

unread,
Jan 31, 2012, 8:29:14 PM1/31/12
to qi...@googlegroups.com
As a note 0.1 seems to be the fastest speed setting available.
Reply all
Reply to author
Forward
0 new messages