Can't think how to create a mini game using widgets.

The first step would be to get the hang of render targets. You can then display this texture in a widget.