https://wiki.sugarlabs.org/api.php?action=feedcontributions&user=Mdd8919&feedformat=atomSugar Labs - User contributions [en]2019-02-21T22:41:27ZUser contributionsMediaWiki 1.29.1https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=29160Lemonade Stand2009-05-15T13:23:28Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br /><br />
- Weather patterns impacting sales<br /><br />
- Advanced mode: changing the recipe for your "lemonade"<br /><br />
- Bargaining/haggling<br /><br />
- Random events that may influence supplies and/or cost and/or customers<br /><br />
- Potential use of network, competitive or cooperative modes<br /><br />
- Choosing location of Lemonade Stand within the town, would influence sales, cost of supplies, etc.<br /><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Sss1406 | Steven Schoenfeld]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
# -*- coding: cp1252 -*-<br />
import random<br />
from counting import play_Money<br />
<br />
<br />
<br />
#Generisize the names of supplys to make it easily editable<br />
#[0] = name of the stand, [1] = first supply, [2] = second supply, [3] = third supply, [4] = the object that is being sold<br />
variables = ['Lemonade Stand','cups','lemons','sugar','cups']<br />
<br />
print 'Welcome to ' + variables[0]<br />
<br />
#Random weather event, if its a hot day all stock will sell, <br />
# if its a normal day, 90% will sell, and if its a raining day 80% will sell<br />
<br />
def weather_Change( ):<br />
global weather<br />
weather = random.randint( -1, 1 )<br />
<br />
if weather == -1:<br />
print "It looks like its going to rain tomorrow"<br />
elif weather == 0:<br />
print "Its a normal day tomorrow"<br />
elif weather == 1:<br />
print "Tomorrow looks to be very hot"<br />
<br />
#Format the input text, and make it return a 0 if input is incorrect<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
#Declare a random event, More events can be added easily by building a new case statment<br />
def random_Event():<br />
global stored_sugar, stored_lemons, stored_cups<br />
event = random.randint(0, 10) <br />
<br />
if event == 0:<br />
<br />
if stored_sugar > 10:<br />
stored_sugar -= 10<br />
print 'Ants steal your supplies!'<br />
else:<br />
stored_sugar = 0<br />
<br />
elif event == 1:<br />
<br />
print 'A lemon truck crashes in front of your stand!'<br />
stored_lemons += 10<br />
<br />
elif event == 2:<br />
<br />
print 'It starts raining cups!'<br />
stored_cups += 10<br />
<br />
print ""<br />
<br />
<br />
#Decreases currently the supply's by 10% each day<br />
def supply_Decay():<br />
global stored_sugar, stored_lemons, stored_cups<br />
if stored_sugar > 0:<br />
stored_sugar -= 10 % stored_sugar<br />
if stored_lemons > 0:<br />
stored_lemons -= 10 % stored_lemons<br />
if stored_cups > 0:<br />
stored_cups -= 10% stored_cups<br />
<br />
return -1<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
weather = 0<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
<br />
<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
<br />
random_Event()<br />
<br />
<br />
print "You have "+`stored_cups`+ " " + variables[1] + ", " +`stored_lemons`+ " " + variables[2] + ", and "+`stored_sugar`+ " " + variables[3] + " left."<br />
<br />
print variables[1] + " price: $" + `cup_price` + " " + variables[2] + " price: $"+ "%.2f" % lemon_price + " " + variables[3] + " price: $"+ "%.2f" % sugar_price<br />
<br />
expenses = 0<br />
<br />
cost_over = 1<br />
<br />
<br />
#Checks to make sure you dont go over your bank amount while buying. <br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + variables[1])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
else:<br />
print 'You cant afford that many ' + variables[1]<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + variables[2])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
else:<br />
print 'You cant afford that many ' + variables[2]<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How much " + variables[3])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
else:<br />
print 'You can not afford that many ' + variables[3]<br />
<br />
<br />
<br />
# Find the lowest amount of supplys, and make that many of lemonade that day<br />
sales = max(min(stored_cups, stored_lemons, stored_sugar),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
<br />
if weather == 0:<br />
sales -= 10 % sales<br />
elif weather == -1:<br />
sales -= 20 % sales<br />
<br />
<br />
<br />
print `sales`+ ' ' + variables[4]+ " made for $"+ "%.2f" % expenses<br />
<br />
profit = sales * product_price<br />
print `sales`+ " " + variables[4] +" were sold today for $"+ "%.2f" % profit<br />
<br />
print "You made $"+ "%.2f" % (profit - expenses)+" today."<br />
<br />
<br />
if (profit - expenses) <= 0:<br />
<br />
print "You lost money today"<br />
<br />
else: <br />
<br />
#If you didnt lose money that day, play the small money game to put away your change<br />
#If you put away change right, you get to keep the profit, otherwise you lose it<br />
<br />
print "You go to put profits away"<br />
<br />
if play_Money( int(profit - expenses) ) == 1:<br />
print "you put the money away correctly"<br />
bank += profit - expenses<br />
else:<br />
print "You lost the money when putting it away"<br />
<br />
<br />
print "Current funds: $"+ "%.2f" % bank<br />
<br />
#Decrease the supply's by 10% <br />
#Warn for the next days weather<br />
<br />
supply_Decay()<br />
weather_Change()<br />
<br />
<br />
print <br />
<br />
print "Done!"<br />
<br />
<br />
</pre><br />
<br />
Counting code<br />
<br />
<pre><br />
<br />
<br />
dollar = 1<br />
quarter = .25<br />
dime = .10<br />
nickel = .05<br />
penny = .01<br />
<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
<br />
def play_Money( money_Find ):<br />
<br />
global quarter, dime, nickel, penny<br />
<br />
total = 0<br />
<br />
#Takes the amount of money<br />
total += dollar*take_input( "How many dollars? ") <br />
<br />
<br />
total += quarter*take_input( "How many quarters? ") <br />
<br />
total += dime*take_input( "How many dimes? ")<br />
<br />
total += nickel*take_input( "How many nickels? ")<br />
<br />
total += penny*take_input( "How many pennies? ")<br />
<br />
if total == money_Find:<br />
return 1<br />
<br />
else:<br />
return -1<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=29159Lemonade Stand2009-05-15T06:13:05Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br /><br />
- Weather patterns impacting sales<br /><br />
- Advanced mode: changing the recipe for your "lemonade"<br /><br />
- Bargaining/haggling<br /><br />
- Random events that may influence supplies and/or cost and/or customers<br /><br />
- Potential use of network, competitive or cooperative modes<br /><br />
- Choosing location of Lemonade Stand within the town, would influence sales, cost of supplies, etc.<br /><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Sss1406 | Steven Schoenfeld]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
# -*- coding: cp1252 -*-<br />
import random<br />
from counting import play_Money<br />
<br />
<br />
<br />
#Generisize the names of supplys to make it easily editable<br />
#[0] = name of the stand, [1] = first supply, [2] = second supply, [3] = third supply, [4] = the object that is being sold<br />
variables = ['Lemonade Stand','cups','lemons','sugar','cups']<br />
<br />
print 'Welcome to ' + variables[0]<br />
<br />
<br />
def weather_Change( ):<br />
global weather<br />
weather = random.randint( -1, 1 )<br />
<br />
if weather == -1:<br />
print "It looks like its going to rain tomorrow"<br />
elif weather == 0:<br />
print "Its a normal day tomorrow"<br />
elif weather == 1:<br />
print "Tomorrow looks to be very hot"<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_Event():<br />
global stored_sugar, stored_lemons, stored_cups<br />
event = random.randint(0, 10) <br />
<br />
if event == 0:<br />
<br />
if stored_sugar > 10:<br />
stored_sugar -= 10<br />
print 'Ants steal your supplies!'<br />
else:<br />
stored_sugar = 0<br />
<br />
elif event == 1:<br />
<br />
print 'A lemon truck crashes in front of your stand!'<br />
stored_lemons += 10<br />
<br />
elif event == 2:<br />
<br />
print 'It starts raining cups!'<br />
stored_cups += 10<br />
<br />
print ""<br />
<br />
<br />
#Decreases currently the supplys by 10% each day<br />
def supply_Decay():<br />
global stored_sugar, stored_lemons, stored_cups<br />
if stored_sugar > 0:<br />
stored_sugar -= 10 % stored_sugar<br />
if stored_lemons > 0:<br />
stored_lemons -= 10 % stored_lemons<br />
if stored_cups > 0:<br />
stored_cups -= 10% stored_cups<br />
<br />
return -1<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
weather = 0<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
<br />
<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
<br />
random_Event()<br />
<br />
<br />
print "You have "+`stored_cups`+ " " + variables[1] + ", " +`stored_lemons`+ " " + variables[2] + ", and "+`stored_sugar`+ " " + variables[3] + " left."<br />
<br />
print variables[1] + " price: $" + `cup_price` + " " + variables[2] + " price: $"+ "%.2f" % lemon_price + " " + variables[3] + " price: $"+ "%.2f" % sugar_price<br />
<br />
expenses = 0<br />
<br />
cost_over = 1<br />
<br />
<br />
#Checks to make sure you dont go over your bank amount while buying. <br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + variables[1])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
else:<br />
print 'You cant afford that many ' + variables[1]<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + variables[2])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
else:<br />
print 'You cant afford that many ' + variables[2]<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How much " + variables[3])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
else:<br />
print 'You can not afford that many ' + variables[3]<br />
<br />
<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
<br />
sales = max(min(stored_cups, stored_lemons, stored_sugar),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
<br />
if weather == 0:<br />
sales -= 10 % sales<br />
elif weather == -1:<br />
sales -= 20 % sales<br />
<br />
<br />
<br />
print `sales`+ ' ' + variables[4]+ " made for $"+ "%.2f" % expenses<br />
<br />
profit = sales * product_price<br />
print `sales`+ " " + variables[4] +" were sold today for $"+ "%.2f" % profit<br />
<br />
print "You made $"+ "%.2f" % (profit - expenses)+" today."<br />
<br />
<br />
if (profit - expenses) <= 0:<br />
<br />
print "You lost money today"<br />
<br />
else: <br />
<br />
print "You go to put profits away"<br />
<br />
if play_Money( int(profit - expenses) ) == 1:<br />
print "you put the money away correctly"<br />
bank += profit - expenses<br />
else:<br />
print "You lost the money when putting it away"<br />
<br />
<br />
print "Current funds: $"+ "%.2f" % bank<br />
<br />
<br />
<br />
supply_Decay()<br />
weather_Change()<br />
<br />
<br />
print <br />
<br />
print "Done!"<br />
<br />
<br />
</pre><br />
<br />
Counting code<br />
<br />
<pre><br />
<br />
<br />
dollar = 1<br />
quarter = .25<br />
dime = .10<br />
nickel = .05<br />
penny = .01<br />
<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
<br />
def play_Money( money_Find ):<br />
<br />
global quarter, dime, nickel, penny<br />
<br />
total = 0<br />
<br />
#Takes the amount of money<br />
total += dollar*take_input( "How many dollars? ") <br />
<br />
<br />
total += quarter*take_input( "How many quarters? ") <br />
<br />
total += dime*take_input( "How many dimes? ")<br />
<br />
total += nickel*take_input( "How many nickels? ")<br />
<br />
total += penny*take_input( "How many pennies? ")<br />
<br />
if total == money_Find:<br />
return 1<br />
<br />
else:<br />
return -1<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=28355Lemonade Stand2009-05-01T15:28:47Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br /><br />
- Weather patterns impacting sales<br /><br />
- Advanced mode: changing the recipe for your "lemonade"<br /><br />
- Bargaining/haggling<br /><br />
- Random events that may influence supplies and/or cost and/or customers<br /><br />
- Potential use of network, competitive or cooperative modes<br /><br />
- Choosing location of Lemonade Stand within the town, would influence sales, cost of supplies, etc.<br /><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Sss1406 | Steven Schoenfeld]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
# -*- coding: cp1252 -*-<br />
import random<br />
<br />
<br />
#Generisize the names of supplys to make it easily editable<br />
#[0] = name of the stand, [1] = first supply, [2] = second supply, [3] = third supply, [4] = the object that is being sold<br />
variables = ['Lemonade Stand','cups','lemons','sugar','cups']<br />
<br />
print 'Welcome to ' + variables[0]<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_Event():<br />
global stored_sugar, stored_lemons, stored_cups<br />
event = random.randint(0, 10) <br />
<br />
if event == 0:<br />
<br />
if stored_sugar > 10:<br />
stored_sugar -= 10<br />
print 'Ants steal your supplies!'<br />
else:<br />
stored_sugar = 0<br />
<br />
elif event == 1:<br />
<br />
print 'A lemon truck crashes in front of your stand!'<br />
stored_lemons += 10<br />
<br />
elif event == 2:<br />
<br />
print 'It starts raining cups!'<br />
stored_cups += 10<br />
<br />
print ""<br />
<br />
<br />
#Decreases currently the supplys by 10% each day<br />
def supply_Decay():<br />
global stored_sugar, stored_lemons, stored_cups<br />
if stored_sugar > 0:<br />
stored_sugar -= 10 % stored_sugar<br />
if stored_lemons > 0:<br />
stored_lemons -= 10 % stored_lemons<br />
if stored_cups > 0:<br />
stored_cups -= 10% stored_cups<br />
<br />
return -1<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
<br />
<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
<br />
random_Event()<br />
<br />
<br />
print "You have "+`stored_cups`+ " " + variables[1] + ", " +`stored_lemons`+ " " + variables[2] + ", and "+`stored_sugar`+ " " + variables[3] + " left."<br />
<br />
print variables[1] + " price: $" + `cup_price` + " " + variables[2] + " price: $"+ "%.2f" % lemon_price + " " + variables[3] + " price: $"+ "%.2f" % sugar_price<br />
<br />
expenses = 0<br />
<br />
cost_over = 1<br />
<br />
<br />
#Checks to make sure you dont go over your bank amount while buying. <br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + variables[1])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
else:<br />
print 'You cant afford that many ' + variables[1]<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + variables[2])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
else:<br />
print 'You cant afford that many ' + variables[2]<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How much " + variables[3])<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
else:<br />
print 'You cant afford that many ' + variables[3]<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+ ' ' + variables[4]+ " made for $"+ "%.2f" % expenses<br />
<br />
profit = sales * product_price<br />
print `sales`+ " " + variables[4] +" were sold today for $"+ "%.2f" % profit<br />
print "You made $"+ "%.2f" % (profit - expenses)+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+ "%.2f" % bank<br />
<br />
supply_Decay()<br />
<br />
print <br />
<br />
print "Done!"<br />
<br />
<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=28352Lemonade Stand2009-05-01T14:49:27Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br />
- Weather patterns impacting sales<br><br />
- Advanced mode: changing the recipe for your "lemonade"<br><br />
- Bargaining/haggling<br><br />
- Random events that may influence supplies and/or cost and/or customers<br><br />
- Potential use of network, competitive or cooperative modes<br><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Sss1406 | Steven Schoenfeld]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
# -*- coding: cp1252 -*-<br />
import random<br />
<br />
<br />
#Generisize the names of supplys to make it easily editable<br />
name = 'Lemonade Stand'<br />
first_supply = 'cups'<br />
second_supply = 'lemons'<br />
third_supply = 'sugar'<br />
what_selling = 'cups'<br />
<br />
print 'Welcome to ' + name<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_Event():<br />
global stored_sugar, stored_lemons, stored_cups<br />
event = random.randint(0, 10) <br />
<br />
if event == 0:<br />
<br />
if stored_sugar > 10:<br />
stored_sugar -= 10<br />
print 'Ants steal your supplies!'<br />
else:<br />
stored_sugar = 0<br />
<br />
elif event == 1:<br />
<br />
print 'A lemon truck crashes in front of your stand!'<br />
stored_lemons += 10<br />
<br />
elif event == 2:<br />
<br />
print 'It starts raining cups!'<br />
stored_cups += 10<br />
<br />
print ""<br />
<br />
def supply_Decay():<br />
global stored_sugar, stored_lemons, stored_cups<br />
if stored_sugar > 0:<br />
stored_sugar -= 10 % stored_sugar<br />
if stored_lemons > 0:<br />
stored_lemons -= 10 % stored_lemons<br />
if stored_cups > 0:<br />
stored_cups -= 10% stored_cups<br />
<br />
return -1<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
<br />
<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
<br />
random_Event()<br />
<br />
<br />
print "You have "+`stored_cups`+ " " + first_supply + ", " +`stored_lemons`+ " " + second_supply + ", and "+`stored_sugar`+ " " + third_supply + " left."<br />
<br />
print first_supply + " price: $" + `cup_price` + " " + second_supply + " price: $"+ "%.2f" % lemon_price + " " + third_supply + " price: $"+ "%.2f" % sugar_price<br />
<br />
expenses = 0<br />
<br />
cost_over = 1<br />
<br />
<br />
#Checks to make sure you dont go over your bank amount while buying. <br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + first_supply)<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
else:<br />
print 'You cant afford that many ' + first_supply<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many " + second_supply)<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
else:<br />
print 'You cant afford that many ' + second_supply<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How much " + third_supply)<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
else:<br />
print 'You cant afford that many ' + third_supply<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+ "%.2f" % expenses<br />
<br />
profit = sales * product_price<br />
print `sales`+ " " + what_selling +" were sold today for $"+ "%.2f" % profit<br />
print "You made $"+ "%.2f" % (profit - expenses)+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+ "%.2f" % bank<br />
<br />
supply_Decay()<br />
<br />
print <br />
<br />
print "Done!"<br />
<br />
<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=28273Lemonade Stand2009-04-30T03:13:39Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br />
- Weather patterns impacting sales<br><br />
- Advanced mode: changing the recipe for your "lemonade"<br><br />
- Bargaining/haggling<br><br />
- Random events that may influence supplies and/or cost and/or customers<br><br />
- Potential use of network, competitive or cooperative modes<br><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
# -*- coding: cp1252 -*-<br />
import random<br />
<br />
name = 'Lemonade Stand'<br />
<br />
print 'Welcome to ' + name<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_Event():<br />
global stored_sugar, stored_lemons, stored_cups<br />
event = random.randint(0, 10) <br />
<br />
if event == 0:<br />
<br />
if stored_sugar > 10:<br />
stored_sugar -= 10<br />
print 'Ants steal your supplies!'<br />
else:<br />
stored_sugar = 0<br />
<br />
elif event == 1:<br />
<br />
print 'A lemon truck crashes in front of your stand!'<br />
stored_lemons += 10<br />
<br />
elif event == 2:<br />
<br />
print 'It starts raining cups!'<br />
stored_cups += 10<br />
<br />
print ""<br />
<br />
def supply_Decay():<br />
global stored_sugar, stored_lemons, stored_cups<br />
if stored_sugar > 0:<br />
stored_sugar -= 10 % stored_sugar<br />
if stored_lemons > 0:<br />
stored_lemons -= 10 % stored_lemons<br />
if stored_cups > 0:<br />
stored_cups -= 10% stored_cups<br />
<br />
return -1<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
<br />
<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
<br />
random_Event()<br />
<br />
<br />
print "You have "+`stored_cups`+" cups, "+`stored_lemons`+" lemons, and "+`stored_sugar`+" sugar left."<br />
<br />
print "Cup price: $" + `cup_price` + " Lemon price: $"+ "%.2f" % lemon_price + " Sugar price: $"+ "%.2f" % sugar_price<br />
<br />
expenses = 0<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many cups")<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
else:<br />
print 'You cant afford that many cups'<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How many lemons")<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
else:<br />
print 'You cant afford that many lemons'<br />
<br />
cost_over = 1<br />
<br />
while cost_over == 1:<br />
<br />
potential_expense = 0<br />
in_num = take_input("How much sugar")<br />
potential_expense = expenses + (in_num * cup_price)<br />
<br />
if potential_expense < bank:<br />
cost_over = -1<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
else:<br />
print 'You cant afford that many lemons'<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+ "%.2f" % expenses<br />
<br />
profit = sales * product_price<br />
print `sales`+" cups were sold today for $"+ "%.2f" % profit<br />
print "You made $"+ "%.2f" % (profit - expenses)+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+ "%.2f" % bank<br />
<br />
supply_Decay()<br />
<br />
print <br />
<br />
print "Done!"<br />
<br />
<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=28268Lemonade Stand2009-04-30T01:37:56Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br />
- Weather patterns impacting sales<br><br />
- Advanced mode: changing the recipe for your "lemonade"<br><br />
- Bargaining/haggling<br><br />
- Random events that may influence supplies and/or cost and/or customers<br><br />
- Potential use of network, competitive or cooperative modes<br><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
# -*- coding: cp1252 -*-<br />
import random<br />
<br />
name = 'Lemonade Stand'<br />
<br />
print 'Welcome to ' + name<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_Event():<br />
global stored_sugar, stored_lemons, stored_cups<br />
event = random.randint(0, 10) <br />
<br />
if event == 0:<br />
<br />
if stored_sugar > 10:<br />
stored_sugar -= 10<br />
print 'Ants steal your supplies!'<br />
else:<br />
stored_sugar = 0<br />
<br />
elif event == 1:<br />
<br />
print 'A lemon truck crashes in front of your stand!'<br />
stored_lemons += 10<br />
<br />
elif event == 2:<br />
<br />
print 'It starts raining cups!'<br />
stored_cups += 10<br />
<br />
def supply_Decay():<br />
return 'hello'<br />
<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
random_Event()<br />
<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
print "You have "+`stored_cups`+" cups, "+`stored_lemons`+" lemons, and "+`stored_sugar`+" sugar left."<br />
<br />
print "Cup price: $" + `cup_price` + " Lemon price: $"+ "%.2f" % lemon_price + " Sugar price: $"+ "%.2f" % sugar_price<br />
<br />
expenses = 0<br />
<br />
in_num = take_input("How many cups")<br />
<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
<br />
in_num = take_input("How many lemons")<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
<br />
in_num = take_input("How much sugar")<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+ "%.2f" % expenses<br />
<br />
profit = sales * product_price<br />
print `sales`+" cups were sold today for $"+ "%.2f" % profit<br />
print "You made $"+ "%.2f" % (profit - expenses)+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+ "%.2f" % bank<br />
<br />
<br />
<br />
print <br />
<br />
print "Done!"<br />
<br />
<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=28267Lemonade Stand2009-04-30T00:18:12Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Description==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible. The game is designed to incorporate money and fractional math skills to teach basic operations. <br />
<br />
We plan to begin with a basic framework, e.g. text based command line, and work up based on free time. Ideally, the game will consist of graphics and a refined GUI front end, similar in look to the currently available flash implementations of Lemonade Stand (although more simplistic, being based in Python).<br />
<br />
Localization will be implemented in the final phase, with the stand being written to use more regional ingredients and products.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.However, the most important goal is to have a working game. While possibly not feature complete, the game should have basic functions working.<br />
<br />
===Extra Features=== <br />
Based on available time:<br />
<br />
- Creating a GUI based game<br /><br />
- Incorporating counting of money (bills and coins) to make change<br /><br />
- Creating seasons to vary prices and product demand<br /><br />
- Possibly making materials perishable to increase difficulty<br /><br />
- Making an intuitive program that can be easily learned, and which has replay value<br />
- Weather patterns impacting sales<br><br />
- Advanced mode: changing the recipe for your "lemonade"<br><br />
- Bargaining/haggling<br><br />
- Random events that may influence supplies and/or cost and/or customers<br><br />
- Potential use of network, competitive or cooperative modes<br><br />
<br />
- Cool Random Events:<br />
<br />
Ants steal your supplies<br />
-10% sugar<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Updates and Milestones==<br />
<br />
===Updates:===<br />
<br />
4/28: Wiki reorganized, content added<br />
<br />
===Milestones:===<br />
<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.<br />
<br />
==Educational Standards==<br />
[http://wiki.sugarlabs.org/go/Math4Team/Resources/Curriculum_Chart Standards found here]<br />
<br />
4.N.4 Select, use, and explain models to relate common fractions and mixed numbers (1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12, and 11/2), find equivalent fractions, mixed numbers, and decimals, and order fractions<br />
<br />
4.N.6 Exhibit an understanding of the base ten number system by reading, naming, and writing decimals between 0 and 1 up to the hundredths. <br />
<br />
4.N.10 Select and use appropriate operations (addition, subtraction, multiplication, and division) to solve problems, including those involving money. <br />
<br />
4.D.3 Construct, draw conclusions, and make predictions from various representations of data sets, including tables, bar graphs, pictographs, line graphs, line plots, and tallies<br />
<br />
==Contacts==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
<br />
==Links and Resources==<br />
Coming soon!<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
<br />
name = 'Lemonade Stand'<br />
<br />
print 'Welcome to ' + name<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
print "You have "+`stored_cups`+" cups, "+`stored_lemons`+" lemons, and "+`stored_sugar`+" sugar left."<br />
<br />
print "Cup price: $"+`cup_price`<br />
print "Lemon price: $"+`lemon_price`<br />
print "Sugar price: $"+`sugar_price`<br />
<br />
expenses = 0<br />
<br />
in_num = take_input("How many cups")<br />
<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
<br />
in_num = take_input("How many lemons")<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
<br />
in_num = take_input("How much sugar")<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+`expenses`<br />
<br />
profit = sales * product_price<br />
print `sales`+" cups were sold today for $"+`profit`<br />
print "You made $"+`(profit - expenses)`+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+`bank`<br />
print "Done!"<br />
<br />
<br />
</pre></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=27991Lemonade Stand2009-04-24T15:35:38Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Group Members==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
<br />
==Idea==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Important Ideas==<br />
Variations in customer demand<br><br />
Perishable resources<br><br />
Variation of prices (both materials and final product)<br><br />
<br />
==Wishlist Ideas==<br />
Weather patterns impacting sales<br><br />
Making change (introduction to currency/fractions/small decimals)<br><br />
Advanced mode: changing the recipie for your "lemonade"<br><br />
Bargaining/haggling<br><br />
Random events that may influence supplies and/or cost and/or customers<br><br />
Potential use of network, competitive or cooperative modes<br><br />
<br />
===Cool Random Events===<br />
<br />
Ants steal your supplys<br />
-10% suger<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
<br />
==Weekly Milestones==<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
<br />
name = 'Lemonade Stand'<br />
<br />
print 'Welcome to ' + name<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_event( ):<br />
<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
print "You have "+`stored_cups`+" cups, "+`stored_lemons`+" lemons, and "+`stored_sugar`+" sugar left."<br />
<br />
print "Cup price: $"+`cup_price`<br />
print "Lemon price: $"+`lemon_price`<br />
print "Sugar price: $"+`sugar_price`<br />
<br />
expenses = 0<br />
<br />
in_num = take_input("How many cups")<br />
<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
<br />
in_num = take_input("How many lemons")<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
<br />
in_num = take_input("How much sugar")<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+`expenses`<br />
<br />
profit = sales * product_price<br />
print `sales`+" cups were sold today for $"+`profit`<br />
print "You made $"+`(profit - expenses)`+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+`bank`<br />
print "Done!"<br />
<br />
<br />
</pre><br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=27990Lemonade Stand2009-04-24T15:34:39Z<p>Mdd8919: /* Code so far */</p>
<hr />
<div>{{TOCright}}<br />
==Group Members==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
<br />
==Idea==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Important Ideas==<br />
Variations in customer demand<br><br />
Perishable resources<br><br />
Variation of prices (both materials and final product)<br><br />
<br />
==Wishlist Ideas==<br />
Weather patterns impacting sales<br><br />
Making change (introduction to currency/fractions/small decimals)<br><br />
Advanced mode: changing the recipie for your "lemonade"<br><br />
Bargaining/haggling<br><br />
Random events that may influence supplies and/or cost and/or customers<br><br />
Potential use of network, competitive or cooperative modes<br><br />
<br />
===Cool Random Events===<br />
<br />
Ants steal your supplys<br />
-10% suger<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
<br />
==Weekly Milestones==<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
<br />
name = 'Lemonade Stand'<br />
<br />
print 'Welcome to ' + name<br />
<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
if in_text < 0:<br />
in_text = 0<br />
<br />
return in_text<br />
<br />
def random_event( ):<br />
<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days would you like to play for?", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
print ""<br />
print "____________________"<br />
print " Day number " + `day`<br />
print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯" <br />
print ""<br />
print "You have "+`stored_cups`+" cups, "+`stored_lemons`+" lemons, and "+`stored_sugar`+" sugar left."<br />
<br />
print "Cup price: $"+`cup_price`<br />
print "Lemon price: $"+`lemon_price`<br />
print "Sugar price: $"+`sugar_price`<br />
<br />
expenses = 0<br />
<br />
in_num = take_input("How many cups")<br />
<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
<br />
in_num = take_input("How many lemons")<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
<br />
in_num = take_input("How much sugar")<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = max(min(today, requested_sales),0)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+`expenses`<br />
<br />
profit = sales * product_price<br />
print `sales`+" cups were sold today for $"+`profit`<br />
print "You made $"+`(profit - expenses)`+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+`bank`<br />
print "Done!"<br />
<br />
<br />
</pre><br />
<br />
Alternate Implementation:<br />
<pre><br />
def supplyReduce():<br />
global cups, lemons, ice<br />
if cups != 0:<br />
cups -= 1<br />
if lemons != 0:<br />
lemons -= 1<br />
if ice != 0:<br />
ice -= 1<br />
<br />
print "some of your supplys was stolen by ants!"<br />
<br />
def makeStuff():<br />
global cups, lemons, ice<br />
made = min(cups, lemons, ice )<br />
cups -= made<br />
lemons -= made<br />
ice -= made<br />
<br />
print "You made " + str(made) + " cups of lemonade" <br />
<br />
<br />
<br />
name = 'lemonade stand'<br />
cups = 0<br />
lemons = 0<br />
ice = 0<br />
today = 0<br />
daysToPlay = 0<br />
<br />
print "Welcome to " + name<br />
<br />
daysToPlay = input("How many days would you like to play for: ")<br />
<br />
<br />
while today <= daysToPlay:<br />
<br />
print " "<br />
print "You have"<br />
print "cups: " + str(cups)<br />
print "lemons: " + str(lemons)<br />
print "ice: " + str(ice)<br />
print " "<br />
<br />
try:<br />
<br />
cupsToAdd = input("How many cups do you want to buy? ")<br />
cups += cupsToAdd<br />
lemonsToAdd = input("How many lemons do you want to buy? ")<br />
lemons += lemonsToAdd<br />
iceToAdd = input("How much ice do you want to buy? ")<br />
ice += iceToAdd<br />
<br />
except:<br />
print "dont break my program"<br />
<br />
<br />
print " "<br />
makeStuff()<br />
supplyReduce()<br />
today += 1<br />
</pre><br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=27982Lemonade Stand2009-04-24T15:15:22Z<p>Mdd8919: </p>
<hr />
<div>{{TOCright}}<br />
==Group Members==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
*[[User:Echo35 | Anthony Lubrani]]<br />
<br />
==Idea==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Important Ideas==<br />
Variations in customer demand<br><br />
Perishable resources<br><br />
Variation of prices (both materials and final product)<br><br />
<br />
==Wishlist Ideas==<br />
Weather patterns impacting sales<br><br />
Making change (introduction to currency/fractions/small decimals)<br><br />
Advanced mode: changing the recipie for your "lemonade"<br><br />
Bargaining/haggling<br><br />
Random events that may influence supplies and/or cost and/or customers<br><br />
Potential use of network, competitive or cooperative modes<br><br />
<br />
===Cool Random Events===<br />
<br />
Ants steal your supplys<br />
-10% suger<br />
A lemon truck crashes in front of your stand<br />
+10 lemons<br />
<br />
<br />
<br />
<br />
==Weekly Milestones==<br />
4/24: Have everyone look at the current implementations.<br />
<br />
5/1: produce a basic 'sugarized' build to work from. Implement price fluctuations.<br />
<br />
5/8: Move to a 'graphical interface' based off of pyGTK or pygame. Add any art we have managed to collect where it seems appropriate.<br />
<br />
==Code so far==<br />
<pre><br />
#!/usr/env python<br />
<br />
def take_input(text, default = 0):<br />
try:<br />
in_text = input(text+" ["+`default`+"]: ")<br />
except:<br />
return default<br />
return in_text<br />
<br />
# default values<br />
cup_price = .25<br />
lemon_price = 1.00<br />
sugar_price = .05<br />
<br />
product_price = 1.50<br />
<br />
#starting resources<br />
bank = 100<br />
<br />
stored_cups = 0<br />
stored_lemons = 0<br />
stored_sugar = 0<br />
<br />
# take in input<br />
num_days = take_input("How many days", 30)<br />
<br />
for day in range(1, num_days + 1):<br />
<br />
print "Day number "+`day`<br />
<br />
print "You have "+`stored_cups`+" cups, "+`stored_lemons`+" lemons, and "+`stored_sugar`+" sugar left."<br />
<br />
print "Cup price: $"+`cup_price`<br />
print "Lemon price: $"+`lemon_price`<br />
print "Sugar price: $"+`sugar_price`<br />
<br />
expenses = 0<br />
<br />
in_num = take_input("How many cups")<br />
expenses += in_num * cup_price<br />
stored_cups += in_num<br />
<br />
in_num = take_input("How many lemons")<br />
expenses += in_num * lemon_price<br />
stored_lemons += in_num<br />
<br />
in_num = take_input("How much sugar")<br />
expenses += in_num * sugar_price<br />
stored_sugar += in_num<br />
<br />
today = min(stored_cups, stored_lemons, stored_sugar)<br />
<br />
# Option 1: make maximum available<br />
#stored_cups -= today<br />
#stored_lemons -= today<br />
#stored_sugar -= today<br />
#print `today`+" cups made for $"+`expenses`<br />
<br />
#default value<br />
requested_sales = 5<br />
sales = min(today, requested_sales)<br />
<br />
# Option 2: make as many as requested<br />
stored_cups -= sales<br />
stored_lemons -= sales<br />
stored_sugar -= sales<br />
print `sales`+" cups made for $"+`expenses`<br />
<br />
profit = sales * product_price<br />
print `sales`+" cups were sold today for $"+`profit`<br />
print "You made $"+`(profit - expenses)`+" today."<br />
bank += profit - expenses<br />
print "Current funds: $"+`bank`<br />
print "Done!"<br />
</pre><br />
<br />
Alternate Implementation:<br />
<pre><br />
def supplyReduce():<br />
global cups, lemons, ice<br />
if cups != 0:<br />
cups -= 1<br />
if lemons != 0:<br />
lemons -= 1<br />
if ice != 0:<br />
ice -= 1<br />
<br />
print "some of your supplys was stolen by ants!"<br />
<br />
def makeStuff():<br />
global cups, lemons, ice<br />
made = min(cups, lemons, ice )<br />
cups -= made<br />
lemons -= made<br />
ice -= made<br />
<br />
print "You made " + str(made) + " cups of lemonade" <br />
<br />
<br />
<br />
name = 'lemonade stand'<br />
cups = 0<br />
lemons = 0<br />
ice = 0<br />
today = 0<br />
daysToPlay = 0<br />
<br />
print "Welcome to " + name<br />
<br />
daysToPlay = input("How many days would you like to play for: ")<br />
<br />
<br />
while today <= daysToPlay:<br />
<br />
print " "<br />
print "You have"<br />
print "cups: " + str(cups)<br />
print "lemons: " + str(lemons)<br />
print "ice: " + str(ice)<br />
print " "<br />
<br />
try:<br />
<br />
cupsToAdd = input("How many cups do you want to buy? ")<br />
cups += cupsToAdd<br />
lemonsToAdd = input("How many lemons do you want to buy? ")<br />
lemons += lemonsToAdd<br />
iceToAdd = input("How much ice do you want to buy? ")<br />
ice += iceToAdd<br />
<br />
except:<br />
print "dont break my program"<br />
<br />
<br />
print " "<br />
makeStuff()<br />
supplyReduce()<br />
today += 1<br />
</pre><br />
<br />
==Design Decisions==<br />
Is lemonade made at the beginning of the day (make all available lemonade at once) or on the fly (a customer asks for lemonade and it is made for them)? This is important as it impacts the resources from day to day. In the former, normally non-perishable objects like cups will be used if they can make another drink (even beyond demand), however in the latter, it makes the game easy if you stock up on resources and slowly sell them each day. This is usually mitigated by having perishable resources (lemons, etc) and variable prices.</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Math4Team/RIT/Alumni/Spring-2009&diff=27976Math4Team/RIT/Alumni/Spring-20092009-04-24T14:45:57Z<p>Mdd8919: /* Mitchell DeMarco */</p>
<hr />
<div>{{TOCright}}<br />
==Computer Engineering Technology==<br />
===[[User:Nikeunltd|Kennedy Kong]]===<br />
2nd Year<br />
<br />
==Computer Science==<br />
===[[User:Mdd8919 | Mitchell DeMarco]]===<br />
xl<br />
<br />
3rd Year<br />
<br />
===[[User:Enimihil|Gregory Stevens]]===<br />
5th Year (Graduating after this class)<br />
<br />
===[[User:Jck1089|James Kolb]]===<br />
4th Year (Double majoring in Math)<br />
<br />
Medium<br />
<br />
===[[User:Qalthos|Nathaniel Case]]===<br />
3rd Year<br />
Large shirt size<br />
<br />
===[[User:EricMallon|Eric Mallon]]===<br />
3rd Year<br />
<br />
===[[User:Eldrac|G. Tyler Bragdon]]===<br />
3rd Year (Minoring in Math)<br />
<br />
==Information Technology==<br />
===[[User:bjr9081|Brendan Reen]]===<br />
4th Year<br />
<br />
===[[User:bbl5660|Brian Long]]===<br />
4th Year<br />
<br />
===[[User:Echo35|Anthony Lubrani]]===<br />
2nd Year<br />
<br />
===[[User:jrgreen118|Jeremiah Green]]===<br />
5th year<br />
<br />
===[[User:wwdillingham|Wesley Dillingham]]===<br />
5th year<br />
<br />
==Photo Journalism==<br />
===[[User:Jsang1|Jonathan Sanger]]===<br />
1st year <br><br />
L<br />
<br />
==Networking==<br />
===[[User:Classclownfish | Abbi Honeycutt]]===<br />
1st year<br />
<br />
===[[User:Epsilon748 | Anthony King -XL]]===<br />
2nd year<br />
<br />
===[[User:Sss1406 | Steven Schoenfeld]]===<br />
4th year<br />
<br />
===[[User:Jfinney | Jameson Finney]]===<br />
3rd year<br />
===[[User:dbj4366 | Dennis Jalbert]]===<br />
5th year (Graduating after this quarter)<br /><br />
Medium<br />
<br />
==Software Engineering==<br />
===[[User:Cdaniels29 | Chris Daniels]]===<br />
5th Year<br />
<br />
===[[User:Dpk3062 | Doug Krofcheck]]===<br />
5th Year</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=27629Lemonade Stand2009-04-17T15:53:39Z<p>Mdd8919: </p>
<hr />
<div>{{TOCright}}<br />
==Group Members==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
<br />
==Idea==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Wishlist Ideas==<br />
Weather patterns impacting sales<br><br />
Making change (introduction to currency/fractions/small decimals)<br><br />
Advanced mode: changing the recipie for your "lemonade"<br><br />
Bargaining/haggling<br><br />
Potential use of network, competitive or cooperative modes<br><br />
<br />
==Code so far==<br />
<code><br />
def supplyReduce():<br />
global cups, lemons, ice<br />
if cups != 0:<br />
cups -= 1<br />
if lemons != 0:<br />
lemons -= 1<br />
if ice != 0:<br />
ice -= 1<br />
<br />
print "some of your supplys was stolen by ants!"<br />
<br />
def makeStuff():<br />
global cups, lemons, ice<br />
made = min(cups, lemons, ice )<br />
cups -= made<br />
lemons -= made<br />
ice -= made<br />
<br />
print "You made " + str(made) + " cups of lemonade" <br />
<br />
<br />
<br />
name = 'lemonade stand'<br />
cups = 0<br />
lemons = 0<br />
ice = 0<br />
today = 0<br />
daysToPlay = 0<br />
<br />
print "Welcome to " + name<br />
<br />
daysToPlay = input("How many days would you like to play for: ")<br />
<br />
<br />
while today <= daysToPlay:<br />
<br />
print " "<br />
print "You have"<br />
print "cups: " + str(cups)<br />
print "lemons: " + str(lemons)<br />
print "ice: " + str(ice)<br />
print " "<br />
<br />
try:<br />
<br />
cupsToAdd = input("How many cups do you want to buy? ")<br />
cups += cupsToAdd<br />
lemonsToAdd = input("How many lemons do you want to buy? ")<br />
lemons += lemonsToAdd<br />
iceToAdd = input("How much ice do you want to buy? ")<br />
ice += iceToAdd<br />
<br />
except:<br />
print "dont break my program"<br />
<br />
<br />
print " "<br />
makeStuff()<br />
supplyReduce()<br />
today += 1<br />
<br />
</code></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=27627Lemonade Stand2009-04-17T15:51:22Z<p>Mdd8919: </p>
<hr />
<div>{{TOCright}}<br />
==Group Members==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
*[[User:Epsilon748 | Anthony King]]<br />
<br />
==Idea==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Wishlist Ideas==<br />
Weather patterns impacting sales<br><br />
Making change (introduction to currency/fractions/small decimals)<br><br />
Advanced mode: changing the recipie for your "lemonade"<br><br />
Bargaining/haggling<br><br />
Potential use of network, competitive or cooperative modes<br><br />
<br />
==Code so far==<br />
<br />
def supplyReduce():<br />
global cups, lemons, ice<br />
if cups != 0:<br />
cups -= 1<br />
if lemons != 0:<br />
lemons -= 1<br />
if ice != 0:<br />
ice -= 1<br />
<br />
print "some of your supplys was stolen by ants!"<br />
<br />
def makeStuff():<br />
global cups, lemons, ice<br />
made = min(cups, lemons, ice )<br />
cups -= made<br />
lemons -= made<br />
ice -= made<br />
<br />
print "You made " + str(made) + " cups of lemonade" <br />
<br />
<br />
<br />
name = 'lemonade stand'<br />
cups = 0<br />
lemons = 0<br />
ice = 0<br />
today = 0<br />
daysToPlay = 0<br />
<br />
print "Welcome to " + name<br />
<br />
daysToPlay = input("How many days would you like to play for: ")<br />
<br />
<br />
while today <= daysToPlay:<br />
<br />
print " "<br />
print "You have"<br />
print "cups: " + str(cups)<br />
print "lemons: " + str(lemons)<br />
print "ice: " + str(ice)<br />
print " "<br />
<br />
try:<br />
<br />
cupsToAdd = input("How many cups do you want to buy? ")<br />
cups += cupsToAdd<br />
lemonsToAdd = input("How many lemons do you want to buy? ")<br />
lemons += lemonsToAdd<br />
iceToAdd = input("How much ice do you want to buy? ")<br />
ice += iceToAdd<br />
<br />
except:<br />
print "dont break my program"<br />
<br />
<br />
print " "<br />
makeStuff()<br />
supplyReduce()<br />
today += 1</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Lemonade_Stand&diff=27609Lemonade Stand2009-04-17T14:47:22Z<p>Mdd8919: /* Group Members */</p>
<hr />
<div>{{TOCright}}<br />
==Group Members==<br />
*[[User:Qalthos|Nathaniel Case]]<br />
*[[User:Jsang1|Jonathan Sanger]]<br />
*[[User:Mdd8919 | Mitchell DeMarco]]<br />
<br />
==Idea==<br />
This is your basic "Lemonade Stand" style game, where the player manages a lemonade stand (or similar such store) and tries to make as much money as possible.<br />
<br />
==Goals==<br />
We're looking to create a workable prototype with the ability to buy materials and sell a product.<br />
<br />
==Potential Problems==<br />
Localization is likely to be a big problem in this game. Not simply translating the words, but also translating the idea, ie. finding out what kind of shop would be reasonable to open in a country, what it might stock, etc.<br />
<br />
==Wishlist Ideas==<br />
Weather patterns impacting sales<br><br />
Making change (introduction to currency/fractions/small decimals)<br><br />
Advanced mode: changing the recipie for your "lemonade"<br><br />
Bargaining/haggling<br><br />
Potential use of network, competitive or cooperative modes<br></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919&diff=27595User:Mdd89192009-04-17T14:02:13Z<p>Mdd8919: /* Information */</p>
<hr />
<div>=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====About Me====<br />
<br />
Hello, i am a 3rd year computer science student interested in developing for limiting platforms. Im always looking to learn new things about programming and new languages.<br />
<br />
I currently know c/c++, java, html, Mips and sql. <br />
<br />
====Project====<br />
<br />
Lemonade stand<br />
<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Contact====<br />
<br />
email - mdd8919@rit.edu<br />
<br />
AIM - Neablis</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919&diff=27096User:Mdd89192009-04-10T14:38:10Z<p>Mdd8919: </p>
<hr />
<div>=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====About Me====<br />
<br />
Hello, i am a 3rd year computer science student interested in developing for limiting platforms. Im always looking to learn new things about programming and new languages.<br />
<br />
I currently know c/c++, java, html, Mips and sql. <br />
<br />
====Project====<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Contact====<br />
<br />
email - mdd8919@rit.edu<br />
<br />
AIM - Neablis</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919&diff=27095User:Mdd89192009-04-10T14:38:01Z<p>Mdd8919: </p>
<hr />
<div>{{userboxtop}}<br />
{{User en}}<br />
{{User irc |nteon|#olpc #sugar|irc.freenode.net }}<br />
{{User time zone|UTC -5 (EST)|world}}<br />
{{userboxbottom}}<br />
<br />
<br />
<br />
=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====About Me====<br />
<br />
Hello, i am a 3rd year computer science student interested in developing for limiting platforms. Im always looking to learn new things about programming and new languages.<br />
<br />
I currently know c/c++, java, html, Mips and sql. <br />
<br />
====Project====<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Contact====<br />
<br />
email - mdd8919@rit.edu<br />
<br />
AIM - Neablis</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919&diff=27060User:Mdd89192009-04-10T02:31:32Z<p>Mdd8919: </p>
<hr />
<div>=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====About Me====<br />
<br />
Hello, i am a 3rd year computer science student interested in developing for limiting platforms. Im always looking to learn new things about programming and new languages.<br />
<br />
I currently know c/c++, java, html, Mips and sql. <br />
<br />
====Project====<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Contact====<br />
<br />
email - mdd8919@rit.edu<br />
<br />
AIM - Neablis</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919&diff=25048User:Mdd89192009-04-03T14:49:51Z<p>Mdd8919: User:Mdd8919 moved to Math4Team/RIT/Students/</p>
<hr />
<div>=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Email====<br />
<br />
email - mdd8919@rit.edu</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User_talk:Mdd8919&diff=25050User talk:Mdd89192009-04-03T14:49:51Z<p>Mdd8919: User talk:Mdd8919 moved to Talk:Math4Team/RIT/Students/</p>
<hr />
<div>Welcome to the Sugar Labs wiki! --[[User:FGrose|FGrose]] 01:02, 23 March 2009 (UTC)</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919/Mitchell_DeMarco&diff=23220User:Mdd8919/Mitchell DeMarco2009-03-20T15:56:09Z<p>Mdd8919: Removing all content from page</p>
<hr />
<div></div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919&diff=23219User:Mdd89192009-03-20T15:56:04Z<p>Mdd8919: New page: =='''Mitchell DeMarco'''== ===Major=== Computer Science Major Third Year Rochester Institute of Te...</p>
<hr />
<div>=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Email====<br />
<br />
email - mdd8919@rit.edu</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Math4Team/RIT/Alumni/Spring-2009&diff=23218Math4Team/RIT/Alumni/Spring-20092009-03-20T15:55:34Z<p>Mdd8919: </p>
<hr />
<div>{{TOCright}}<br />
==Computer Engineering Technology==<br />
===Student===<br />
Kennedy Kong - 2nd Year<br />
<br />
==Computer Science==<br />
===Student===<br />
[[Mitchell DeMarco]] - 3rd Year<br />
<br />
Gregory Stevens - 5th Year (Graduating after this class)<br />
<br />
==Information Technology==<br />
===Student===<br />
Brendan Reen - 4th Year<br />
<br />
Brian Long - 4th Year<br />
<br />
==Photo Journalism==<br />
===Student===<br />
<br />
Jonathan Sanger - 1st year<br />
<br />
==Networking==<br />
===Student===<br />
Anthony King -2nd year<br />
<br />
==Software Engineering==<br />
===Student===<br />
Class year</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919/Mitchell_DeMarco&diff=23216User:Mdd8919/Mitchell DeMarco2009-03-20T15:54:14Z<p>Mdd8919: </p>
<hr />
<div><br />
=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Email====<br />
<br />
email - mdd8919@rit.edu</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=User:Mdd8919/Mitchell_DeMarco&diff=23215User:Mdd8919/Mitchell DeMarco2009-03-20T15:53:58Z<p>Mdd8919: New page: {{TOCcenter}} =='''Mitchell DeMarco'''== ===Major=== Computer Science Major Third Year Rochester ...</p>
<hr />
<div>{{TOCcenter}}<br />
<br />
=='''Mitchell DeMarco'''==<br />
<br />
<br />
<br />
===Major===<br />
<br />
Computer Science Major <br />
<br />
Third Year <br />
<br />
Rochester Institute of Technology<br />
<br />
===Information===<br />
<br />
====Website====<br />
<br />
www.cs.rit.edu/~mdd8919<br />
<br />
====Email====<br />
<br />
email - mdd8919@rit.edu</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Math4Team/RIT/Alumni/Spring-2009&diff=23191Math4Team/RIT/Alumni/Spring-20092009-03-20T15:10:42Z<p>Mdd8919: /* Student */</p>
<hr />
<div>==Computer Engineering Technology==<br />
===Student===<br />
<br />
==Computer Science==<br />
===Student===<br />
Mitchell DeMarco - 3rd Year<br />
<br />
==Information Technology==<br />
===Student===<br />
Class year<br />
==Photo Journalism==<br />
===Student===<br />
Class year<br />
==Networking==<br />
===Student===<br />
Class year<br />
==Software Engineering==<br />
===Student===<br />
Class year</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Math4Team/RIT/Alumni/Spring-2009&diff=23190Math4Team/RIT/Alumni/Spring-20092009-03-20T15:10:35Z<p>Mdd8919: /* Student */</p>
<hr />
<div>==Computer Engineering Technology==<br />
===Student===<br />
<br />
==Computer Science==<br />
===Student===<br />
Class year<br />
==Information Technology==<br />
===Student===<br />
Class year<br />
==Photo Journalism==<br />
===Student===<br />
Class year<br />
==Networking==<br />
===Student===<br />
Class year<br />
==Software Engineering==<br />
===Student===<br />
Class year</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Math4Team/RIT/Alumni/Spring-2009&diff=23189Math4Team/RIT/Alumni/Spring-20092009-03-20T15:10:14Z<p>Mdd8919: /* Student */</p>
<hr />
<div>==Computer Engineering Technology==<br />
===Student===<br />
Mitchell DeMarco - 3rd Year<br />
<br />
==Computer Science==<br />
===Student===<br />
Class year<br />
==Information Technology==<br />
===Student===<br />
Class year<br />
==Photo Journalism==<br />
===Student===<br />
Class year<br />
==Networking==<br />
===Student===<br />
Class year<br />
==Software Engineering==<br />
===Student===<br />
Class year</div>Mdd8919https://wiki.sugarlabs.org/index.php?title=Math4Team/RIT/Alumni/Spring-2009&diff=23188Math4Team/RIT/Alumni/Spring-20092009-03-20T15:09:22Z<p>Mdd8919: </p>
<hr />
<div>==Computer Engineering Technology==<br />
===Student===<br />
Class year<br />
==Computer Science==<br />
===Student===<br />
Class year<br />
==Information Technology==<br />
===Student===<br />
Class year<br />
==Photo Journalism==<br />
===Student===<br />
Class year<br />
==Networking==<br />
===Student===<br />
Class year<br />
==Software Engineering==<br />
===Student===<br />
Class year</div>Mdd8919