Description
The LED Service communicates important information to the agent. During the simulation, it shows the passage of time through a stylized progress bar. When the simulation begins, the LED matrix displays a bullet flying (slowly) out of the barrel of the 007 gun. As time progresses, the bullet shoots across the screen. When the bullet reaches the end, the game is over. This service also shows the agent their score at the end and how to begin the activity. Below is the state diagram, pseudo-code, and code listing.
State Diagram
Pseudo-code
Header File
ledservice.h | |
File Size: | 0 kb |
File Type: | h |
C File
ledservice.c | |
File Size: | 9 kb |
File Type: | c |