forked from CS25-Unit2-BW/CS25-Treasure-hunt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil.py
57 lines (47 loc) · 2.03 KB
/
util.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class Queue():
def __init__(self):
self.queue = []
def enqueue(self, value):
self.queue.append(value)
def dequeue(self):
if self.size() > 0:
return self.queue.pop(0)
else:
return None
def size(self):
return len(self.queue)
class Stack():
def __init__(self):
self.stack = []
def push(self, value):
self.stack.append(value)
def pop(self):
if self.size() > 0:
return self.stack.pop()
else:
return None
def size(self):
return len(self.stack)
#GET
Init = "https://lambda-treasure-hunt.herokuapp.com/api/adv/init"
Coin_Balance = "https://lambda-treasure-hunt.herokuapp.com/api/adv/get_balance"
Last_Proof = "https://lambda-treasure-hunt.herokuapp.com/api/bc/last_proof"
#POST
Move = "https://lambda-treasure-hunt.herokuapp.com/api/adv/move"
Wise_Explorer =" https://lambda-treasure-hunt.herokuapp.com/api/adv/move"
Take = "https://lambda-treasure-hunt.herokuapp.com/api/adv/take"
Drop = "https://lambda-treasure-hunt.herokuapp.com/api/adv/drop"
Sell = "https://lambda-treasure-hunt.herokuapp.com/api/adv/sell"
Examine = "https://lambda-treasure-hunt.herokuapp.com/api/adv/examine"
Inventory = "https://lambda-treasure-hunt.herokuapp.com/api/adv/status"
Wear = "https://lambda-treasure-hunt.herokuapp.com/api/adv/wear"
Undress = "https://lambda-treasure-hunt.herokuapp.com/api/adv/undress"
Change_your_name = "https://lambda-treasure-hunt.herokuapp.com/api/adv/change_name"
Pray = "https://lambda-treasure-hunt.herokuapp.com/api/adv/pray"
Fly = "https://lambda-treasure-hunt.herokuapp.com/api/adv/fly"
Dash = "https://lambda-treasure-hunt.herokuapp.com/api/adv/dash"
Carry = "https://lambda-treasure-hunt.herokuapp.com/api/adv/carry"
Receive = "https://lambda-treasure-hunt.herokuapp.com/api/adv/receive"
Warp = "https://lambda-treasure-hunt.herokuapp.com/api/adv/warp"
Mine = "https://lambda-treasure-hunt.herokuapp.com/api/adv/mine"
Transmorgify = "https://lambda-treasure-hunt.herokuapp.com/api/transmorgify"