Skip to content

Commit

Permalink
Slight change
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaykgupta committed Sep 24, 2016
1 parent bb9d5e7 commit e904571
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Board.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __init__(self, n, canvas, window_height, window_width):
self.window_width = window_width

def render(self, game):
time.sleep(0.05)
self.canvas.delete("all")
self.draw_squares()
self.draw_board_labels()
Expand Down
4 changes: 3 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def playTak(self,n,timelimit,client_0,client_1):
parser.add_argument('-NC', dest = 'num_clients', metavar = 'num_clients', type = int, default = 2, help = 'Number of clients connecting to the server')
parser.add_argument('-TL', dest = 'time_limit', metavar = 'time_limit', type = int, default = 120, help = 'Time limit (in s)')
args = parser.parse_args()

if args.n < 5 or args.n > 7:
print 'Game size should be 5x5, 6x6 or 7x7.'
sys.exit()
local_Server.BuildServer(args.port, args.num_clients)
if(local_Server.client_count < 2):
local_Server.SendInitError2Clients()
Expand Down

0 comments on commit e904571

Please sign in to comment.