Continued network mode implementation
This commit is contained in:
parent
4f5227cd82
commit
f4680cc631
4 changed files with 126 additions and 38 deletions
12
pygo.py
12
pygo.py
|
@ -18,15 +18,15 @@ def main():
|
|||
|
||||
# Data
|
||||
gb = goban.Goban()
|
||||
network_mode = False
|
||||
our_color = None
|
||||
gui = pygogui.GUI(gb)
|
||||
gui = pygogui.GUI(gb, settings)
|
||||
|
||||
gui.update(gb)
|
||||
gui.update()
|
||||
|
||||
while True:
|
||||
gui.do_event(gb, network_mode, our_color)
|
||||
gui.update(gb)
|
||||
# All of the real work happens in pygogui
|
||||
# It keeps a copy of all the relevant data
|
||||
gui.do_event()
|
||||
gui.update()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue