Building the Plug-in

The first thing to do is to download and install the sample plug-in.  Copy the following three files into a working directory:

Then compile them with cgsuite.jar in your classpath.  For example:

javac -classpath "cgsuite.jar;." *.java

To use the new plug-in:

  1. Copy all the resulting .class files (five of them) into the plugins subdirectory of your main cgsuite installation.
  2. Run cgsuite.  When the worksheet opens up, select Plug-in Manager from the Tools menu.
  3. Click "Add".  Click on the box labeled "Enter Class Name Here", replace the text with "SamplePlugin" and press Enter.  The following text should appear in the lower box:
    An example plug-in that includes Partizan Nim and Fission.
  4. Click "Load" followed by "OK".

To test the plug-in, try typing the following into the worksheet:

C(PartizanNim([1,3,5],[2,4],9))


Continue on to Partizan Nim