Browse Source

modified a bit

othello
みてるぞ 8 months ago
parent
commit
6196d5f2ed
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      main.py

+ 6
- 7
main.py View File

@@ -22,18 +22,17 @@ class Main:
@classmethod @classmethod
def main (cls, argv: list, argc: int) -> None: def main (cls, argv: list, argc: int) -> None:
mode = Mode.NIZIKA mode = Mode.NIZIKA
if argc > 0:
match argv[0]:
case '-g':
mode = Mode.GOATOH
match (argc > 0) and argv[0]:
case '-g':
mode = Mode.GOATOH


case '-w':
mode = Mode.DOUBLE
case '-w':
mode = Mode.DOUBLE


goatoh_mode = mode == Mode.GOATOH goatoh_mode = mode == Mode.GOATOH
double_mode = mode == Mode.DOUBLE double_mode = mode == Mode.DOUBLE


print (goatoh_mode)
print (mode)


pygame.init () pygame.init ()
screen: pygame.Surface = pygame.display.set_mode ((1024, 768)) screen: pygame.Surface = pygame.display.set_mode ((1024, 768))


Loading…
Cancel
Save