Commit 3f610d38 authored by Sam Moore's avatar Sam Moore

Remove types_revealed from network.py

parent 8a1471b7
......@@ -1240,7 +1240,7 @@ class NetworkSender(Player,Network):
if selected != None and selected.colour == self.colour and len(s) > 2 and not "->" in s:
s = " ".join(s[0:3])
for i in range(2):
if selected.types_revealed[i] == True:
if selected.types[i][0] == '?':
s += " " + str(selected.types[i])
else:
s += " unknown"
......@@ -1301,9 +1301,9 @@ class NetworkReceiver(Player,Network):
for i in range(2):
selected.types[i] = str(s[3+i])
if s[3+i] == "unknown":
selected.types_revealed[i] = False
selected.types[i] = '?'+selected.types[i]
else:
selected.types_revealed[i] = True
selected.types[i] = selected.types[i][1:]
selected.current_type = selected.types[selected.choice]
else:
pass
......@@ -2633,4 +2633,4 @@ if __name__ == "__main__":
sys.exit(102)
# --- main.py --- #
# EOF - created from make on Wed Mar 27 12:42:42 WST 2013
# EOF - created from make on Wed Mar 27 13:05:44 WST 2013
......@@ -116,7 +116,7 @@ class NetworkSender(Player,Network):
if selected != None and selected.colour == self.colour and len(s) > 2 and not "->" in s:
s = " ".join(s[0:3])
for i in range(2):
if selected.types_revealed[i] == True:
if selected.types[i][0] == '?':
s += " " + str(selected.types[i])
else:
s += " unknown"
......@@ -177,9 +177,9 @@ class NetworkReceiver(Player,Network):
for i in range(2):
selected.types[i] = str(s[3+i])
if s[3+i] == "unknown":
selected.types_revealed[i] = False
selected.types[i] = '?'+selected.types[i]
else:
selected.types_revealed[i] = True
selected.types[i] = selected.types[i][1:]
selected.current_type = selected.types[selected.choice]
else:
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment