28 lines
412 B
Python
Executable File
28 lines
412 B
Python
Executable File
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# A GTK Python GO client
|
|
|
|
import sys
|
|
sys.path.append('lib/')
|
|
|
|
import goban
|
|
import pygogui
|
|
|
|
|
|
def main():
|
|
# Data
|
|
gb = goban.Goban()
|
|
network_mode = False
|
|
our_color = None
|
|
gui = pygogui.GUI(gb)
|
|
|
|
gui.update(gb)
|
|
|
|
while True:
|
|
event = gui.do_event(gb, network_mode, our_color)
|
|
gui.update(gb)
|
|
|
|
|
|
if __name__ == '__main__': main()
|