4 コミット

2個のファイルの変更32行の追加28行の削除
-4
ファイルの表示
@@ -18,7 +18,6 @@ from aques import Aques
from common_const import * from common_const import *
from common_module import CommonModule from common_module import CommonModule
from mode import Mode from mode import Mode
from othello import Othello
from talk import Talk from talk import Talk
from youtube import * from youtube import *
@@ -49,9 +48,6 @@ class Main:
screen: pygame.Surface = pygame.display.set_mode ( screen: pygame.Surface = pygame.display.set_mode (
(CWindow.WIDTH, CWindow.HEIGHT)) (CWindow.WIDTH, CWindow.HEIGHT))
# オセロ用オブジェクト
othello = Othello (screen)
# 大月ヨヨコの観測値 # 大月ヨヨコの観測値
observer = ephem.Observer () observer = ephem.Observer ()
observer.lat, observer.lon = '35', '139' observer.lat, observer.lon = '35', '139'
+21 -13
ファイルの表示
@@ -2,23 +2,31 @@ import pygame
from pygame.locals import * from pygame.locals import *
import sys import sys
from common_const import *
class Othello: class Othello:
# 盤の色 SCREEN_SIZE: tuple = (640, 480)
BOARD_COLOUR: tuple = (0, 128, 0) BOARD_COLOUR: tuple = (0, 128, 0)
def __init__ ( @classmethod
self, def main (cls) -> None:
screen: pygame.Surface) \ pygame.init ()
-> None: screen: pygame.Surface = pygame.display.set_mode (cls.SCREEN_SIZE)
self.screen = screen
# オセロ中? while True:
self.othello_mode = False screen.fill ((0, 0, 0))
def redraw (self) -> None: # pygame.draw.rect (screen, BOARD_COLOUR, )
if self.othello_mode:
pass 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 ()