MarkN and MarkX provide a framework and particular guess generators for interactively playing the N Digit Number Game against a computer.

See:
          Description

Packages
org.dolben.anim  
org.dolben.iiid  
org.dolben.MarkN  
org.dolben.MarkX  
org.dolben.poly  

 

MarkN and MarkX provide a framework and particular guess generators for interactively playing the N Digit Number Game against a computer.

This documentation was (supposed to have been) generated at the package level, so that the internal design of the packages is visible.

The package MarkN provides the framework and library, including

The package MarkX uses the derivation interface of MarkN and has classes for two guess generators and the applets that use them.

The Monitors algorithm, the main point of interest, is explained in MonitorsGenerator, and implemented there and in Monitor, and Requirement. Compare it to the BruteForceGenerator, which gets the same results at the cost of many more CPU cycles.

Generator, which defines the interface to a guess generator, is central to the design.

Guesser is the abstract applet, a derived class only needing the implementation of a factory method to have a Generator.

legend class diagram
Note that Scorer is not shown in the diagram. Also, the class Numbah is called "Number" in the diagram.