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
| const int ledPins[] = {8, 9, 10, 11}; | |
| const int buttonPins[] = {2, 3, 4, 5}; | |
| int sequence[100]; | |
| int input[100]; | |
| int level = 0; | |
| int step = 0; | |
| bool playing = true; | |
| // Define pin numbers for LEDs | |
| const int led1 = 8; |
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
| #!/usr/bin/env python | |
| import networkx as nx | |
| import time | |
| import sys | |
| from networkx.drawing.nx_pydot import read_dot | |
| from networkx.drawing.nx_pydot import write_dot | |
| def nmatch(n1, n2): | |
| return n1 == n2 |
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
| import unittest | |
| import networkx as nx | |
| def nmatch(n1, n2): | |
| return n1 == n2 | |
| def ematch(e1, e2): | |
| return e1 == e2 | |
| def ged(g1,g2): |