OSDN Git Service

win10 でも動きます
authoryamat0jp <yamat0jp@yahoo.co.jp>
Sat, 28 Apr 2018 00:14:24 +0000 (09:14 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Sat, 28 Apr 2018 00:14:24 +0000 (09:14 +0900)
reversi/reversi.py

index c85e84d..0e0e7ce 100644 (file)
@@ -139,7 +139,7 @@ class StoneGrid():
                                     q = Effect(x+m*j,y+n*j)          
                                     self.item.grid[q.Left][q.Top] = effect  
                                     self.effect_stone = stone                   
-                                    th = threading.Timer(0.1,self.th_run,args=(q,))
+                                    th = threading.Timer(0.2*j,self.th_run,args=(q,))
                                     self.list.append(th)
                                     th.start()                                                                                                                                 
                                 else:
@@ -211,6 +211,7 @@ class StoneGrid():
                 self.item.grid[st.Left][st.Top] = self.effect_stone
                 break
             self.Paint(st)
+            time.sleep(0.01)
                 
     def proc(self):    
         if self.turn_index < 60: