The display below shows a simple two-person zero-sum game. You can alter the payoffs to R by adjusting the sliders, whose values are always integers in the range -10 to +10. As you adjust them, the fractions showing the ideal mixed strategy for each player are automatically updated.
Written by Peter Ross as a very simple example illustrating some basic Java. Click here for the source code.