|
|
@@ -1,32 +1,24 @@ |
|
|
|
import pygame
|
|
|
|
from pygame.locals import *
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
class Othello:
|
|
|
|
SCREEN_SIZE: tuple = (640, 480)
|
|
|
|
|
|
|
|
BOARD_COLOUR: tuple = (0, 128, 0)
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def main (cls) -> None:
|
|
|
|
pygame.init ()
|
|
|
|
screen: pygame.Surface = pygame.display.set_mode (cls.SCREEN_SIZE)
|
|
|
|
|
|
|
|
while True:
|
|
|
|
screen.fill ((0, 0, 0))
|
|
|
|
|
|
|
|
# pygame.draw.rect (screen, BOARD_COLOUR, )
|
|
|
|
|
|
|
|
pygame.display.update ()
|
|
|
|
pygame.time.wait (33)
|
|
|
|
|
|
|
|
for event in pygame.event.get ():
|
|
|
|
if event.type == QUIT:
|
|
|
|
pygame.quit ()
|
|
|
|
sys.exit ()
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
Othello.main ()
|
|
|
|
|
|
|
|
import pygame |
|
|
|
from pygame.locals import * |
|
|
|
import sys |
|
|
|
|
|
|
|
from common_const import * |
|
|
|
|
|
|
|
|
|
|
|
class Othello: |
|
|
|
# 盤の色 |
|
|
|
BOARD_COLOUR: tuple = (0, 128, 0) |
|
|
|
|
|
|
|
def __init__ ( |
|
|
|
self, |
|
|
|
screen: pygame.Surface) \ |
|
|
|
-> None: |
|
|
|
self.screen = screen |
|
|
|
|
|
|
|
# オセロ中? |
|
|
|
self.othello_mode = False |
|
|
|
|
|
|
|
def redraw (self) -> None: |
|
|
|
if self.othello_mode: |
|
|
|
pass |
|
|
|
|