伊地知ニジカ放送局だぬ゛ん゛. https://www.youtube.com/@deerjika
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

othello.py 710 B

1234567891011121314151617181920212223242526272829303132
  1. import pygame
  2. from pygame.locals import *
  3. import sys
  4. class Othello:
  5. SCREEN_SIZE: tuple = (640, 480)
  6. BOARD_COLOUR: tuple = (0, 128, 0)
  7. @classmethod
  8. def main (cls) -> None:
  9. pygame.init ()
  10. screen: pygame.Surface = pygame.display.set_mode (cls.SCREEN_SIZE)
  11. while True:
  12. screen.fill ((0, 0, 0))
  13. # pygame.draw.rect (screen, BOARD_COLOUR, )
  14. pygame.display.update ()
  15. pygame.time.wait (33)
  16. for event in pygame.event.get ():
  17. if event.type == QUIT:
  18. pygame.quit ()
  19. sys.exit ()
  20. if __name__ == '__main__':
  21. Othello.main ()