Hi I need to produce a skeleton state machine c program code for the following:

A slot machine which displays 3 numbers which change in random fashion. It has 2 buttons. A start number to change the numbers and a Stop button to stop one of the three numbers (one after the other).
The slot machine starts changing all three numbers after the start button has been pressed. Then pressing the Stop button repeatedly stops one at a time. A win is indicated on the display if all numbers are equal after all the numbers have been stopped. The game can be restarted after pressing the start button again.

Can anyone please provide a skeleton State Machine C code for the slot machine description above? Thanks.