Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 함수
- pointer
- 반복문
- assignment operator
- function
- programming
- Class
- const
- 티스토리챌린지
- C++
- vscode
- OOP
- baekjoon
- array
- predictive analysis
- Data Science
- Python
- 알고리즘
- Deep Learning
- raw data
- 문자열
- 오블완
- string
- Object Oriented Programming
- pass by reference
- 파이썬
- 포인터
- Pre-processing
- 백준
- 배열
Archives
- Today
- Total
목록2023/09/27 (1)
Channi Studies
Turtle graphics Module을 사용해서 뱀 게임을 만들어보자. 먹이를 먹으면 꼬리가 한 칸씩 자라고, 꼬리나 창 끝에 부딪히면 죽는 게임이다. main.py, snake.py, scoreBoard.py, food.py 총 4가지 파일로 이루어져 있다. # main.py import time from turtle import Screen, Turtle from snake import Snake from food import Food from scoreBoard import ScoreBoard screen = Screen() screen.setup(width=600, height=600) screen.bgcolor("black") screen.title("Snake Game") screen.tr..
python
2023. 9. 27. 22:18