This file contains 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 <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 2, 3, 4, 5); | |
const byte btnPin = 13; | |
const unsigned long debounceTime = 10; // milliseconds | |
const byte screenWidth = 16; | |
const byte screenHeight = 2; | |
// game constants |
This file contains 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 random | |
graph = [(8, 16), (8, 18), (16, 17), (18, 19), (3, 17), (13, 17), (5, 13),(3, 4), (0, 18), (3, 14), (11, 14), (1, 8), (1, 9), (4, 12), (2, 19), (1, 10), (7, 9), (13, 15), (6, 12), (0, 1), (2, 11), (3, 18), (5, 6), (7, 15), (8, 13), (10, 17)] | |
traversal = [] | |
def build_connections(graph): | |
flattened_nodes = [node for edge in graph for node in edge]# [1, 2, 2, 3, 3, 1] | |
unique_nodes = list(set(flattened_nodes))# [1, 2, 3] | |
connections = dict() |
This file contains 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
curl `pbpaste` | grep 'id="show-original-link"' | sed 's/^.*<li><a href="//' | sed 's/".*$//' | pbcopy |