Professional Documents
Culture Documents
A Reply To How To Design A State Flow Fo
A Reply To How To Design A State Flow Fo
and based on
this organization write the code (Chionglo, 2014). The following is an example of a game logic (based on a Flashcard
game) organized in terms of Petri Nets (“How to Design”, 2016). In this game there are nine cards. One card is shown at
a time then the player guesses the card. The number of correct guesses and the number of incorrect guesses are
recorded and play continues until there are no more cards to display.
Figure 1 (for the PDF version of this reply) is an interactive, dynamic diagram of the game logic; it includes “graphic
notations” of cards with standard Petri Net notations and some high-level notations of Petri Net elements. The
demonstration mode of the game logic randomly selects a card from the deck then randomly guesses the card.
�− �+
P7 P8 P9
9 P3 P4
P0
P10 P12 �− �−
T3 T0 �− �−
P11
P2
P5 P6
References
Chionglo, J. F. (2014). Net Elements and Annotations for Computer Programming: Computations and Interactions in PDF.
Available at http://www.aespen.ca/NetElementsAndAnnotationsForComputerProgramming.pdf
“How to design a state flow for a react/redux flashcard game?” (2016). Stack Exchange. Retrieved on Feb. 7, 2016 at
http://stackoverflow.com/questions/35220169/how-to-design-a-state-flow-for-a-react-redux-flashcard-game.