Skip to content

Instantly share code, notes, and snippets.

import pygame, sys, time
black = 0,0,0
red = 255,0,0
wall_color = 255,0,0
background_color = 255,255,255
green = 0,255,0
blue = 0,0,255
white = 255,255,255
dark_blue = 25,25,112
Running = True
while Running:
number = input("Number: ")
x = 0
for munb in list(number):
x += 1
print(munb)
if munb != "0" and munb != "1":
print("Only 1 and 0")
else:
import pygame, sys, random
pygame.init()
size = width, height = 1000,600
screen = pygame.display.set_mode(size)
red = 220, 0, 0
black = 0,0,0
@wibbia
wibbia / Tetris
Last active August 29, 2015 14:21
import pygame, sys, random, time
from pygame.locals import *
pygame.init()
size = width, height = 400,600
screen = pygame.display.set_mode(size)
picked_letter = []
@wibbia
wibbia / Paino.py
Last active August 29, 2015 14:19
import pygame, sys, winsound, time
pygame.init()
size = width, height = 865, 365
s = pygame.display.set_mode(size)
class Notes(pygame.sprite.Sprite):
def __init__(self, x, y, colour, sound_control):
import pygame, sys, time
from pygame.locals import *
## Initialize Pygame
pygame.init()
## Set Values for screen
size = width, height = 1000, 600
s = pygame.display.set_mode(size)
package com.example.jim.tictactoe;
/**
* Created by Jim on 2014/11/1
*/
public class Logic {
public static final int PLAYER_X = 1;
public static final int PLAYER_O = 0;
public static final int EMPTY = -1;
public static final int PLAYER_X_WIN = 2;
public static final int PLAYER_O_WIN = 3;
import pygame, sys, time
from pygame.locals import *
pygame.init()
white = 255,255,255
red = 255,0,0
black = 0,0,0
blue = 0,0,255
Orange = 255,185,0
import random
print("Poem Generator")
noun = open("Words\Boun.txt", "r")
n = noun.readlines()
noun.close()
verb = open("Words\Berbs.txt", "r")
v = verb.readlines()
verb.close()
import pygame, sys, time, math, random, os
from pygame.locals import *
pygame.init()
size = width, height = 1150,600
black = 0,0,0
brown = 168,132,32
grey = 119,119,119