diff --git a/AI/Game/Demo/AirCraft.rar b/AI/Game/Demo/AirCraft.rar deleted file mode 100644 index 822dc8ce..00000000 Binary files a/AI/Game/Demo/AirCraft.rar and /dev/null differ diff --git a/AI/Game/Demo/BlockBreaker.rar b/AI/Game/Demo/BlockBreaker.rar deleted file mode 100644 index e9594838..00000000 Binary files a/AI/Game/Demo/BlockBreaker.rar and /dev/null differ diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/.arts/launch.json b/AI/Game/Demo/BlockBreaker/BlockBreaker/.arts/launch.json new file mode 100644 index 00000000..cd25c8b3 --- /dev/null +++ b/AI/Game/Demo/BlockBreaker/BlockBreaker/.arts/launch.json @@ -0,0 +1,14 @@ +{ + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "currentFileConfiguration": true, + "console": "internalConsole", + "justMyCode": true, + "addSourceRootsToPythonpath": true, + }, + ] +} diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/.arts/settings.json b/AI/Game/Demo/BlockBreaker/BlockBreaker/.arts/settings.json new file mode 100644 index 00000000..17aec7a9 --- /dev/null +++ b/AI/Game/Demo/BlockBreaker/BlockBreaker/.arts/settings.json @@ -0,0 +1,3 @@ +{ + "python.django.project.enabled": false +} \ No newline at end of file diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/bg.jpg b/AI/Game/Demo/BlockBreaker/BlockBreaker/bg.jpg new file mode 100644 index 00000000..d838e43e Binary files /dev/null and b/AI/Game/Demo/BlockBreaker/BlockBreaker/bg.jpg differ diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/bg.mp3 b/AI/Game/Demo/BlockBreaker/BlockBreaker/bg.mp3 new file mode 100644 index 00000000..b154093c Binary files /dev/null and b/AI/Game/Demo/BlockBreaker/BlockBreaker/bg.mp3 differ diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/dangban.png b/AI/Game/Demo/BlockBreaker/BlockBreaker/dangban.png new file mode 100644 index 00000000..528921a6 Binary files /dev/null and b/AI/Game/Demo/BlockBreaker/BlockBreaker/dangban.png differ diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/dangban.wav b/AI/Game/Demo/BlockBreaker/BlockBreaker/dangban.wav new file mode 100644 index 00000000..cba0982e Binary files /dev/null and b/AI/Game/Demo/BlockBreaker/BlockBreaker/dangban.wav differ diff --git a/AI/Test/YunNanExcel/__init__.py b/AI/Game/Demo/BlockBreaker/BlockBreaker/main.py similarity index 100% rename from AI/Test/YunNanExcel/__init__.py rename to AI/Game/Demo/BlockBreaker/BlockBreaker/main.py diff --git a/AI/Game/Demo/BlockBreaker/BlockBreaker/peng.wav b/AI/Game/Demo/BlockBreaker/BlockBreaker/peng.wav new file mode 100644 index 00000000..dbe66755 Binary files /dev/null and b/AI/Game/Demo/BlockBreaker/BlockBreaker/peng.wav differ diff --git a/AI/Game/Demo/Snake.rar b/AI/Game/Demo/Snake.rar deleted file mode 100644 index 88d404e2..00000000 Binary files a/AI/Game/Demo/Snake.rar and /dev/null differ diff --git a/AI/Game/Demo/Snake/Alibaba-PuHuiTi-Regular.otf b/AI/Game/Demo/Snake/Alibaba-PuHuiTi-Regular.otf new file mode 100644 index 00000000..5960ba12 Binary files /dev/null and b/AI/Game/Demo/Snake/Alibaba-PuHuiTi-Regular.otf differ diff --git a/AI/Game/Demo/Snake/bg.jpg b/AI/Game/Demo/Snake/bg.jpg new file mode 100644 index 00000000..59251746 Binary files /dev/null and b/AI/Game/Demo/Snake/bg.jpg differ diff --git a/AI/Game/Demo/Snake/bg.mp3 b/AI/Game/Demo/Snake/bg.mp3 new file mode 100644 index 00000000..5bf564ba Binary files /dev/null and b/AI/Game/Demo/Snake/bg.mp3 differ diff --git a/AI/Game/Demo/Snake/body.png b/AI/Game/Demo/Snake/body.png new file mode 100644 index 00000000..12b509c4 Binary files /dev/null and b/AI/Game/Demo/Snake/body.png differ diff --git a/AI/Game/Demo/Snake/eat.wav b/AI/Game/Demo/Snake/eat.wav new file mode 100644 index 00000000..a8ed0ba1 Binary files /dev/null and b/AI/Game/Demo/Snake/eat.wav differ diff --git a/AI/Game/Demo/Snake/failed.wav b/AI/Game/Demo/Snake/failed.wav new file mode 100644 index 00000000..240da214 Binary files /dev/null and b/AI/Game/Demo/Snake/failed.wav differ diff --git a/AI/Game/Demo/Snake/head.png b/AI/Game/Demo/Snake/head.png new file mode 100644 index 00000000..b0028ed8 Binary files /dev/null and b/AI/Game/Demo/Snake/head.png differ diff --git a/AI/Game/Demo/TankWar.rar b/AI/Game/Demo/TankWar.rar deleted file mode 100644 index 27028506..00000000 Binary files a/AI/Game/Demo/TankWar.rar and /dev/null differ diff --git a/AI/Game/Demo/TankWar/main.py b/AI/Game/Demo/TankWar/main.py index c495fbb5..b3fae6a2 100644 --- a/AI/Game/Demo/TankWar/main.py +++ b/AI/Game/Demo/TankWar/main.py @@ -3,6 +3,7 @@ import sys import json import os import random +# pip3 install moviepy from moviepy.editor import VideoFileClip import threading diff --git a/AI/Test/YunNanExcel/TestYunNan.py b/AI/Test/YunNanExcel/TestYunNan.py deleted file mode 100644 index 748ec809..00000000 --- a/AI/Test/YunNanExcel/TestYunNan.py +++ /dev/null @@ -1,52 +0,0 @@ -from openpyxl import load_workbook - - -def column_letter_to_number(column_letter): - """ - 将 Excel 列字母转换为数字 - :param column_letter: 列字母,如 "A", "B", "Z", "AA", "AB" 等 - :return: 列数字, 例如 "A" 返回 1, "B" 返回 2 - """ - result = 0 - - for i, letter in enumerate(reversed(column_letter)): - result += (ord(letter) - ord('A') + 1) * (26 ** i) - - return result - -# 输入文件路径 -xlsx_file = r'D:\dsWork\2025年收集的人口与教育数据库(20250328)\2015-2020年的数据\基础教育\2019.xlsx' -sheet_name = '基教小学' - -# 从第 8 行开始是有效数据 -row_start = 8 - -# 定义列索引(列索引从 1 开始) -col_school_name = 2 # B 列:学校名称 -col_school_type = 4 # D 列:办学类型 -col_school_count = 6 # F 列:学校数量 - - -# 加载 Excel 文件 -wb = load_workbook(xlsx_file) -ws = wb[sheet_name] - - -col_city = column_letter_to_number('MM4') # MM4 列:市 -col_district = column_letter_to_number('MN4') # MN4 列:区 - -# 遍历有效数据行并输出指定列的值 -# for row in ws.iter_rows(min_row=row_start, values_only=True): -# school_name = row[col_school_name - 1] # B 列:学校名称 -# school_type = row[col_school_type - 1] # D 列:办学类型 -# school_count = row[col_school_count - 1] # F 列:学校数量 -# city = row[col_city - 1] # MM 列:市 -# district = row[col_district - 1] # MN 列:区 -# -# if school_count > 0: -# # 打印指定列的值 -# print(f"学校名称: {school_name}, 办学类型: {school_type}, 学校数量: {school_count}, 市: {city}, 区: {district}") - -# 关闭 Excel 文件 -ws.close() -wb.close() \ No newline at end of file