Menu

WWC-Tool (Java) GUI

Ferenc Hechler
Attachments
JavaScriptDebugging2.png (275821 bytes)

WWC-Tool (Java) GUI

This tool allows you to single step your webworker.

In fact this is the same tool as the Batch Tool, but it is started without the command line argument "NOGUI".

  1. download "wwctool.jar".
  2. create a subfolder "WWCOwn" and put your own webworker into it.
  3. create a subfolder "WWCOpponent" and put your opponent webworkers into it.
  4. Start "java -jar wwctool.jar"

You need Java 6 or up.
Recommended: Java 8 for full JS-Syntax (e.g. UInt8Array).

The left view shows you the 100x100 field.
The right view shows only the parts which are visible for your strategy.

If you have an IDE which supports to debug JavaScript which was started from the ScriptEngine you can debug your web worker while watching the single steps.
Currently I found only "IntelliJ IDEA (Ultimate Edition)" to support debugging (see screenshot above).

As an alternative you can debug your WebWorker in Google Chrome using the [WWC-Tool (HTML)].

Usage:
java -jar wwctool.jar [<ownfolder> <opponentfolder>] [<NOGUI>] [DELAY=<n>] [SEED=<n>]

"SEED=<n>" allows reproducable random numbers, 0=true random. (in JS use "console.random()")
"DELAY=<n>" delay the moves of the faster strategy. For some example "DELAY=75" gives result which are closer to the results in the browser.
 "NOGUI" starts the Batch-Mode.

Related

Wiki: Home
Wiki: WWC-Tool (HTML)

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.