MeSnek.Direction = "Down" if MeSnek.Ready and OtherSnek.Ready: if game.AppleLocation["Type"] == "Normal": AppleColor = RED elif game.AppleLocation["Type"] == "Speed": AppleColor = YELLOW elif game.AppleLocation["Type"] == "Board": AppleColor = BLUE Drawing.DrawGrid(Window, GameWidth, GameHeight) Drawing.DrawSNEK(Window, MeSnek.Cords, MeSnek.Color, MeSnek.InnerColor) Drawing.DrawSNEK(Window, OtherSnek.Cords, OtherSnek.Color, OtherSnek.InnerColor) Drawing.DrawScores(Window, "LEFT", MeSnek.Cords, GameWidth) Drawing.DrawScores(Window, "RIGHT", OtherSnek.Cords, GameWidth) Drawing.DrawApple(Window, game.AppleLocation, AppleColor) print(MeSnek.Direction, OtherSnek.Direction) elif not (MeSnek.Ready and OtherSnek.Ready): Drawing.DrawGrid(Window, GameWidth, GameHeight) Drawing.DrawStartScreen(Window, GameWidth, GameHeight, Player) Drawing.DrawSNEK(Window, MeSnek.Cords, MeSnek.Color, MeSnek.InnerColor) Drawing.DrawSNEK(Window, OtherSnek.Cords, OtherSnek.Color, OtherSnek.InnerColor) Network.Send(MeSnek.Direction, MeSnek.Ready, Player) pygame.display.update() TicksPerSecCLOCK.tick(TicksPerSec)