forked from Hollyqui/PyDrink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drink_adder.py
24 lines (24 loc) · 934 Bytes
/
drink_adder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# from calc import Calculator
#
# class drink_adder:
# def beer(self, volume, percent, time):
# drink_time = 2
# for i in range(drink_time):
# calc.add(time+i, volume/drink_time, percent, 0.018)
# calc.eliminate()
# def wine(self, volume, percent, time):
# drink_time = 20
# for i in range(drink_time):
# calc.add(time + i, volume / drink_time, percent, 0.018)
# def shot(self, volume, percent, time):
# drink_time = 1
# for i in range(drink_time):
# calc.add(time + i, volume / drink_time, percent, 0.018)
# def longdrinks(self, volume, percent, time):
# drink_time = 30
# for i in range(drink_time):
# calc.add(time + i, volume / drink_time, percent, 0.018)
# if __name__ == '__main__':
# calc = Calculator()
# #calc.add(0, 330, 10, 0.018)
# drink_adder.beer(drink_adder, 330, 10, 0)