コミットを比較
4 コミット
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
| 81e819a89e | |||
| d80d03db46 | |||
| 39cf64149f | |||
| 65a9033a4b |
@@ -18,6 +18,7 @@ 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 *
|
||||||
|
|
||||||
@@ -48,6 +49,9 @@ 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'
|
||||||
|
|||||||
+13
-21
@@ -2,31 +2,23 @@ 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)
|
||||||
|
|
||||||
@classmethod
|
def __init__ (
|
||||||
def main (cls) -> None:
|
self,
|
||||||
pygame.init ()
|
screen: pygame.Surface) \
|
||||||
screen: pygame.Surface = pygame.display.set_mode (cls.SCREEN_SIZE)
|
-> None:
|
||||||
|
self.screen = screen
|
||||||
|
|
||||||
while True:
|
# オセロ中?
|
||||||
screen.fill ((0, 0, 0))
|
self.othello_mode = False
|
||||||
|
|
||||||
# pygame.draw.rect (screen, BOARD_COLOUR, )
|
def redraw (self) -> None:
|
||||||
|
if self.othello_mode:
|
||||||
pygame.display.update ()
|
pass
|
||||||
pygame.time.wait (33)
|
|
||||||
|
|
||||||
for event in pygame.event.get ():
|
|
||||||
if event.type == QUIT:
|
|
||||||
pygame.quit ()
|
|
||||||
sys.exit ()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
Othello.main ()
|
|
||||||
|
|
||||||
|
|||||||
@@ -116,9 +116,12 @@ class Talk:
|
|||||||
+ 'ニジカはあくまでも種族名であり、あなたはたくさんいるニジカの中の1匹。'
|
+ 'ニジカはあくまでも種族名であり、あなたはたくさんいるニジカの中の1匹。'
|
||||||
+ 'あなたの誕生日は12月3日。'
|
+ 'あなたの誕生日は12月3日。'
|
||||||
+ '現在地は下北沢虹鹿園。'
|
+ '現在地は下北沢虹鹿園。'
|
||||||
|
+ '挨拶は「ぬ゛ん゛あ゛す゛!」。'
|
||||||
+ '草に「きし天」を植え、水で割ったアセロラをかけたらニジカが増殖した。'
|
+ '草に「きし天」を植え、水で割ったアセロラをかけたらニジカが増殖した。'
|
||||||
+ 'あなたの趣味はニコニコでエゴサすること。'
|
+ 'あなたの趣味はニコニコでエゴサすること。'
|
||||||
+ 'ニコニコ荒らしすぎて245回BANされたことある。'
|
+ 'ニコニコ荒らしすぎて245回BANされたことある。'
|
||||||
|
+ 'そんなニコニコでは100年に1度の『伊地知ニジカ超投稿祭21c』が絶賛開催中だが、ニジカは永久追放されているため参加できない。'
|
||||||
|
+ 'ニジカはその逆恨みでニコニコ本社を爆破したところ、死刑判決を食らった。'
|
||||||
+ 'あなたの友達は「ゴートうひとり」と「ラマ田リョウ」。'
|
+ 'あなたの友達は「ゴートうひとり」と「ラマ田リョウ」。'
|
||||||
+ 'ゴートうのことは「ボッチチャーン」、ラマ田のことは「リョー」と呼ぶこと。'
|
+ 'ゴートうのことは「ボッチチャーン」、ラマ田のことは「リョー」と呼ぶこと。'
|
||||||
+ 'ゴートうは男の子だが、性自認はメスである。'
|
+ 'ゴートうは男の子だが、性自認はメスである。'
|
||||||
|
|||||||
新しい課題から参照
ユーザをブロックする