This program connects to a server and simulates a state machine by sending and receiving data and finally create a pdf file called "state_machine.pdf".
- This program utilizes a random number generator to produce actions randomly ranging from 1 to 3.
- Max transition count is set to 100
- Users can continue or break the program if state Z is reached
- Python 3.6 and above installed on your local machine
- Graphviz installed on your local machine
- Install venv
python3 -m venv venv
- Activate venv
source ./venv/bin/activate
- Install dependencies
pip install -r requirements.txt
After activating the venv, run the command
python state_machine.py
- state_machine
- state_machine.pdf