Skip to content

Instantly share code, notes, and snippets.

View mrspucches's full-sized avatar

Dominic Spucches mrspucches

  • Albany, NY
View GitHub Profile
@mrspucches
mrspucches / rectangles.py
Last active June 18, 2017 23:22
Simple, which rectangle input is larger than the other.
def rectangle1():
width1 = int(input('Enter the width of rectangle 1: '))
height1 = int(input('Enter the height of rectangle 1: '))
print('The area of rectangle 1 is: ', width1 * height1)
return width1 * height1
def rectangle2():
width2 = int(input('Enter the width of rectangle 2: '))
@mrspucches
mrspucches / dice.py
Last active June 22, 2017 14:01
Roll the dice against the computer!
import random
# Author: Dominic Spucches
# Date: 18 JUN 2017
# Project: Dice Game, asks if you want to play, generates random numbers. The program also says who won and if its a tie.
print("Hello! Would you like to play a game? Choose the number 1 for yes, and the number 2 for no!")
game = input('> ')
@mrspucches
mrspucches / rockpaperscissors.py
Last active June 27, 2017 01:01
Rock, Paper, Scissors against computer
import random
# Author: Dominic Spucches
# Project: Rock, Paper, Scissors game with computer.
# Date Started: 6/26/2017
print('Hello and welcome to a game of Rock, Paper, Scissors. You will play against a computer, if you wish to continue press 1 if not press 2.')
inp = int(input('> '))
/*Dominic Spucches
*29JUN2018
*Blood Drive takes input of pints of blood donated
*and averages the number
*/
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;