This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define MOD(x, k) ((x) % (k) + ((k))) % (k) | |
int main() { | |
int p1, p2; | |
puts( | |
"Welcome to Rock, Paper, Scissors\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef enum { | |
Pedestrian, | |
Traffic | |
} LightType; | |
typedef struct { | |
int lights[2]; | |
int phase; | |
} PedestrianLights; |