コミットを比較
2 コミット
feature/042
...
othello
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
| 81e819a89e | |||
| 65a9033a4b |
@@ -18,6 +18,7 @@ from aques import Aques
|
||||
from common_const import *
|
||||
from common_module import CommonModule
|
||||
from mode import Mode
|
||||
from othello import Othello
|
||||
from talk import Talk
|
||||
from youtube import *
|
||||
|
||||
@@ -48,6 +49,9 @@ class Main:
|
||||
screen: pygame.Surface = pygame.display.set_mode (
|
||||
(CWindow.WIDTH, CWindow.HEIGHT))
|
||||
|
||||
# オセロ用オブジェクト
|
||||
othello = Othello (screen)
|
||||
|
||||
# 大月ヨヨコの観測値
|
||||
observer = ephem.Observer ()
|
||||
observer.lat, observer.lon = '35', '139'
|
||||
|
||||
+13
-21
@@ -2,31 +2,23 @@ import pygame
|
||||
from pygame.locals import *
|
||||
import sys
|
||||
|
||||
from common_const import *
|
||||
|
||||
|
||||
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)
|
||||
def __init__ (
|
||||
self,
|
||||
screen: pygame.Surface) \
|
||||
-> None:
|
||||
self.screen = screen
|
||||
|
||||
while True:
|
||||
screen.fill ((0, 0, 0))
|
||||
# オセロ中?
|
||||
self.othello_mode = False
|
||||
|
||||
# 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 ()
|
||||
def redraw (self) -> None:
|
||||
if self.othello_mode:
|
||||
pass
|
||||
|
||||
|
||||
新しい課題から参照
ユーザをブロックする