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
"""I am the creator of this program. | |
This is a gambling game where one player is "Even" and the other player is "Odd." | |
Each player begins with some money, and each player chooses some money to bet. | |
If the sum is odd, the odd player wins. | |
If the sum is even, the even player wins. | |
Play ends when a player has less than twice the maximum bet. | |
Play also ends when the human player decides to quit by entering a bet of 0. | |
""" | |
import random |
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
#I am the creator of this program. This program is designed to implement a simple gambling game where one player is "odd" and the other player is "even." Each player begins witha certain amount of money and each player chooses some money to bet. If sum is odd, odd player wins. If sum is even, even player wins. Play continues until one or the other player has less than 2 * the maximum bet or until the human player decides to quit. | |
import random | |
a = "Human money" | |
b = "Computer money" | |
c = "Maximum bet" | |
Name = raw_input("Do you want to be even?") |
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
#Monica Ionescu and James Park | |
#Figurate Numbers | |
#This program tests for characteristics of positive integers (tests for figurate numbers) | |
import math | |
#This function compiles all other functions in this program, establishes a range of numbers, \ | |
#and tests the numbers for each specific characteristic. | |
def main(): | |
limit = 100 |
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
# The Three Musketeers Game | |
# by James Park and Joo Kim. | |
# In all methods, | |
# A 'location' is a two-tuple of integers, each in the range 0 to 4. | |
# The first integer is the row number, the second is the column number. | |
# A 'direction' is one of the strings "up", "down", "left", or "right". | |
# A 'board' is a list of 5 lists, each containing 5 strings: "M", "R", or "-". | |
# "M" = Musketeer, "R" = Cardinal Richleau's man, "-" = empty. | |
# Each list of 5 strings is a "row" |
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 unittest | |
from three_musketeers import * | |
left = 'left' | |
right = 'right' | |
up = 'up' | |
down = 'down' | |
M = 'M' | |
R = 'R' | |
_ = '-' |
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
#CIT 591 | |
#Assignment 4 - HTML Tidy | |
#by James Park and Yue Chen | |
import Tkinter | |
import tkFileDialog | |
import os.path | |
import shutil | |
import random | |
import sys |
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
#Test file for Assignment 4 - tidyHTML | |
#by James Park and Yue Chen | |
import unittest | |
from tidyHTML import * | |
import os | |
import re | |
class TestTidyHTML(unittest.TestCase): | |
global bad_content, bad_content1, bad_content2, bad_content3, bad_content4, too_long_line |
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
# Classes and methods for a simple library program | |
# Authors: Dave Matuszek and James Park and Josh Kessler | |
#-------------------------------------------------------------- | |
class Calendar(object): | |
"""Keeps track of the durrent date (as an integer).""" | |
def __init__(self): | |
"""Creates the initial calendar.""" | |
self.date = 0 |
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 unittest | |
from library import * | |
lib = Library() | |
lib.open() | |
class CalendarTest(unittest.TestCase): | |
def test_calendar(self): | |
cal = Calendar() |
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
package negadecimalCalculator; | |
import java.util.Scanner; | |
public class NegadecimalCalculator { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
new NegadecimalCalculator().REPL(); | |
} | |
public String evaluate(String s){ | |
} |
OlderNewer