Continuous Matrix - RedwoodAdmin/RedwoodFramework GitHub Wiki
Continuous Matrix is a continuous version of Discrete Matrix also played between pairs of two players. It is also a great example of the use of the SynchronizedStopwatch service provided with Redwood.
Each period consists of a configurable amount of time during which each player can switch between actions A and B. Similarly to Discrete Matrix, a rewards grid indicates the reward that each player will receive for each of the 4 possible combinations of actions. However, in this case the actual reward is calculated based on the integral of the reward value over time. Each period can optionally be broken down into sub-periods where changes to the selected actions only take effect at the end of each sub-period.
A screenshot of the main subject page is shown below.
The source code can be downloaded from the webpage