pip install pygameimport pygameimport sys# 초기화pygame.init()# 화면 설정screen = pygame.display.set_mode((640, 480))pygame.display.set_caption('키보드 입력 예제')# 색상 설정WHITE = (255, 255, 255)BLACK = (0, 0, 0)# 폰트 설정font = pygame.font.Font(None, 74)# 텍스트 초기화text = ""text_surface = font.render(text, True, BLACK)# 메인 루프running = Truewhile running: for event in pygame.event.get(): if event.type == pyg..
[step 1] player 객체 선언과 TicTacToe 객체 선언 # player.py import math import random class Player(): def __init__(self, letter): self.letter = letter def get_move(self, game): pass class RandomComputerPlayer(Player): def __init__(self, letter): super().__init__(letter) def get_move(self, game): pass class HumanPlayer(Player): def __init__(self, letter): super().__init__(letter) def get_move(self, game):..
1. vscode 설치 Download Visual Studio Code - Mac, Linux, Windows Download Visual Studio Code - Mac, Linux, Windows Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. code.visualstudio.com 2. 파이썬 익스텐션으로 python, Pylanc..
- Total
- Today
- Yesterday
- OverTheWire
- over the wire
- OpenSSL
- tr
- 리터럴
- java
- ssh
- Linux
- Natas
- Bandit
- gz
- nc
- 웹보안공부
- tar
- natas7
- bz2
- Strings
- 압축파일
- BASE64
- SSL
- HTTPS
- grep
- find
- 리눅스
- Encode
- 32bit
- 풀이
- 웹보안
- X32
- solution
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |