Python tic tac toe project not working, giving me Deprecation Error

Every time I try to run my python tic tac toe programming project I run into an error where it states DeprecationWarning ex: C:/Dell/TicTacToeLwazi.py:47: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. pg.draw.line(screen, line_color, (width / 3, 0), (width / 3, height), 7) C:/Dell/TicTacToeLwazi.py:48: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. pg.draw.line(screen, line_color, (width / 3 * 2, 0), (width / 3 * 2, height), 7) C:/Dell/TicTacToeLwazi.py:50: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. pg.draw.line(screen, line_color, (0, height / 3), (width, height / 3), 7) C:/Dell/TicTacToeLwazi.py:51: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. pg.draw.line(screen, line_color, (0, height / 3 * 2), (width, height / 3 * 2), 7) C:/Dell/TicTacToeLwazi.py:65: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. text_rect = text.get_rect(center=(width / 2, 500 - 50))

This is my code that results in the error

  pg.draw.line(screen, line_color, (width / 3, 0), (width / 3, height), 7)
  pg.draw.line(screen, line_color, (width / 3 * 2, 0), (width / 3 * 2, height), 7)
  # Drawing horizontal lines
  pg.draw.line(screen, line_color, (0, height / 3), (width, height / 3), 7)
  pg.draw.line(screen, line_color, (0, height / 3 * 2), (width, height / 3 * 2), 
text_rect = text.get_rect(center=(width / 2, 500 - 50))
type or paste code here

I understand this isn’t a typical freecodecamp question but I need help because I’m almost finished with the project and this is the only thing holding me back

I’d add an explicit to int(val)

ah where do I put that?

every line that’s generating that warning