while True:
 for event in pygame.event.get():
  if event.type==pygame.QUIT:
   pygame.quit()
   sys.exit()
 pygame1.blit(image1,(0,0))
 print ("choose from 0-8")
 p1=int(input())
 while p1>8 or p1<0 or list_b[p1]=="X" or list_b[p1]=="O":
        print ("wtf bro")
        p1=int(input())
 list_b[p1]="X"
 if p1==0:
          pygame1.blit(image2,(31,36))
 elif p1==1:
          pygame1.blit(image2,(90,36))
 elif p1==2:
          pygame1.blit(image2,(143,36))
 elif p1==3:
         pygame1.blit(image2,(31,90))
 elif p1==4:
         pygame.blit(image2,(90,90))
 elif p1==5:
          pygame1.blit(image2,(143,90))
 elif p1==6:
          pygame1.blit(image2,(31,146))
 elif p1==7:
          pygame1.blit(image2,(90,146))
 elif p1==8:
          pygame1.blit(image2,(143,146))

 total+=1
 print ("choose from 0-8")
 p2=int(input())
 while p2>8 or p2<0 or list_b[p2]=="X" or list_b[p2]=="O":
        print ("wtf bro")
        p2=int(input())
 list_b[p2]=="O"
 if p2==0:
  pygame1.blit(image3,(31,36))
 elif p2==1:
   pygame1.blit(image3,(90,36))
 elif p2==2:
   pygame1.blit(image3,(143,36))
 elif p2==3:
   pygame1.blit(image3,(31,90))
 elif p2==4:
   pygame1.blit(image3,(90,90))
 elif p2==5:
   pygame1.blit(image3,(143,90))
 elif p2==6:
   pygame1.blit(image3,(31,146))
 elif p2==7:
   pygam1e.blit(image3,(90,146))
 elif p2==8:
   pygame1.blit(image3,(143,146)
 total+=1
 fps=40
 clockfps.tick(fps)
 pygame.display.update()


the problem with this is that i get an syntax error at the very end at the 
TOTAL+=1 when i delete this it tells me that there is an error at the 
clockfps.tick(fps) thing what the heck is going on :p
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to