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
| void setup() { | |
| // put your setup code here, to run once: | |
| randomSeed(millis()); | |
| int i = 2; | |
| for(;i<18;i++){ | |
| pinMode(i, OUTPUT); | |
| if (i<10){ | |
| digitalWrite(i, HIGH); | |
| } | |
| } |
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 random | |
| a = input("Will you be player X or O? ") | |
| a = a.upper() | |
| while a != "X" and a != "O": | |
| print ("invalid") | |
| a = input("Will you be player X or O? ") | |
| a = a.upper() | |
| b = random.randint(1,2) | |
| if a == "X": |
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
| #! python3 | |
| import pygame | |
| from pygame import* | |
| import random | |
| import sys | |
| a = -800 | |
| an = -800 | |
| b = 145 |
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 pygame | |
| from pygame import * | |
| import random | |
| import tiledtmxloader | |
| class pusher: | |
| def __init__(self, x1, y1, image, obj, do1=None, do2=None, time=0, pos_do=None, | |
| anti_pos_do=None, infinity=0, proces=2): | |
| self.x1, self.y1 = x1, y1 |
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 pygame | |
| import random | |
| pygame.init() | |
| white = (255, 255, 255) | |
| black = (0, 0, 0) | |
| red = (255, 0, 0) | |
| green = (0, 255, 0) | |
| blue = (0, 0, 255) |
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 pygame | |
| from pygame import* | |
| import sys | |
| import random | |
| ticket1 = True | |
| mouseticket = False | |
| level = 0 |