A simple example of a shooting game. If you hit the target wins a point. If you miss the shot you lose a point. If you miss the target loses two points.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.