Built with blockbuilder.org
        
  
    
      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
    
  
  
    
  | var colors = ["red", "blue", "green", "yellow"]; | |
| var directions = [up, down, left, right]; | |
| while (remainingDots() > 0) { | |
| directions[Math.floor(Math.random()*directions.length)](); | |
| setColor(colors[Math.floor(Math.random()*colors.length)]); | |
| } | 
  
    
      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
    
  
  
    
  | def determine_winner(board): | |
| """ board takes the form of a String | |
| with the indices representing each | |
| of these squares: | |
| 0 | 1 | 2 | |
| ---+---+--- | |
| 3 | 4 | 5 | |
| ---+---+--- | |
| 6 | 7 | 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
    
  
  
    
  | const int numPins = 12; | |
| const int pins[] = {2,3,4,5,6,7,8,9,10,11,12,13}; | |
| void setup() { | |
| for (int i = 0; i < numPins; ++i) { | |
| pinMode(pins[i], OUTPUT); | |
| } | |
| } | |
| int litPin = 0; | 
  
    
      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 numPins = 12; | |
| const int pins[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; | |
| const int motionSensePin = A0; | |
| void setup() { | |
| for (int i = 0; i < numPins; ++i) { | |
| pinMode(pins[i], OUTPUT); | |
| } | |
| pinMode(motionSensePin, INPUT); | 
  
    
      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 <CapacitiveSensor.h> | |
| /* | |
| * CapitiveSense Library Demo Sketch | |
| * Paul Badger 2008 | |
| * Uses a high value resistor e.g. 10M between send pin and receive pin | |
| * Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values. | |
| * Receive pin is the sensor pin - try different amounts of foil/metal on this pin | |
| */ | 
  
    
      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
    
  
  
    
  | license: mit | 
  
    
      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
    
  
  
    
  | background(255); | |
| noStroke(); | |
| var h = 0; | |
| while(true) { | |
| background(255); | |
| colorMode(HSB); | |
| fill(h, 100, 100); | |
| ellipse(width/2, height/2, 100, 100); | 
  
    
      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
    
  
  
    
  | background(255); | |
| strokeWeight(3); | |
| colorMode(HSB); | |
| while (true) { | |
| var h = random(360) | |
| stroke(h, 50, 90); | |
| fill(h, 50, 100); | |
| var r = random(30, 60); | 
OlderNewer