From 344db46e3259b0736d66246a4c5829aa3fe899b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=8E=E9=B9=8F=20=E5=A4=A7?= <1903877378@qq.com> Date: Wed, 3 Jan 2024 21:25:34 +0800 Subject: [PATCH 1/2] update files --- CONTRIBUTING.md | 61 ++++++++++++++++++ README.md | 53 +++++++++------ {test => project}/JAVA_MVC/.DS_Store | Bin {test => project}/JAVA_MVC/.idea/.gitignore | 0 {test => project}/JAVA_MVC/.idea/compiler.xml | 0 .../JAVA_MVC/.idea/dataSources.xml | 0 .../JAVA_MVC/.idea/jarRepositories.xml | 0 .../libraries/mysql_connector_j_8_0_32.xml | 0 {test => project}/JAVA_MVC/.idea/misc.xml | 0 .../JAVA_MVC/.idea/uiDesigner.xml | 0 {test => project}/JAVA_MVC/pom.xml | 0 .../JAVA_MVC/src/main/java/my/code/APP.java | 0 .../src/main/java/my/code/Dao/UserDao.java | 0 .../main/java/my/code/Dao/UserDaoImpl.java | 0 .../src/main/java/my/code/UI/MainUI.java | 0 .../src/main/java/my/code/bean/User.java | 0 .../main/java/my/code/service/Service.java | 0 .../main/java/my/code/service/UserLogin.java | 0 .../java/my/code/service/UserLoginImpl.java | 0 .../java/my/code/service/UserRegister.java | 0 .../my/code/service/UserRegisterImpl.java | 0 .../JAVA_MVC/target/classes/my/code/APP.class | Bin .../target/classes/my/code/Dao/UserDao.class | Bin .../classes/my/code/Dao/UserDaoImpl.class | Bin .../target/classes/my/code/UI/MainUI.class | Bin .../target/classes/my/code/bean/User.class | Bin .../classes/my/code/service/Service.class | Bin .../classes/my/code/service/UserLogin.class | Bin .../my/code/service/UserLoginImpl.class | Bin .../my/code/service/UserRegister.class | Bin .../my/code/service/UserRegisterImpl.class | Bin project/README.md | 13 ++++ .../SnakeDemo}/.idea/dbnavigator.xml | 0 .../SnakeDemo}/.idea/misc.xml | 0 .../SnakeDemo}/.idea/modules.xml | 0 .../SnakeDemo}/.idea/workspace.xml | 0 .../SnakeDemo}/SnakeDemo.iml | 0 .../SnakeDemo/com/snake/Snake.class | Bin .../production/SnakeDemo/com/snake/Test.class | Bin .../SnakeDemo}/src/com/snake/Snake.java | 0 .../SnakeDemo}/src/com/snake/Test.java | 0 41 files changed, 109 insertions(+), 18 deletions(-) create mode 100644 CONTRIBUTING.md rename {test => project}/JAVA_MVC/.DS_Store (100%) rename {test => project}/JAVA_MVC/.idea/.gitignore (100%) rename {test => project}/JAVA_MVC/.idea/compiler.xml (100%) rename {test => project}/JAVA_MVC/.idea/dataSources.xml (100%) rename {test => project}/JAVA_MVC/.idea/jarRepositories.xml (100%) rename {test => project}/JAVA_MVC/.idea/libraries/mysql_connector_j_8_0_32.xml (100%) rename {test => project}/JAVA_MVC/.idea/misc.xml (100%) rename {test => project}/JAVA_MVC/.idea/uiDesigner.xml (100%) rename {test => project}/JAVA_MVC/pom.xml (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/APP.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/Dao/UserDao.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/Dao/UserDaoImpl.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/UI/MainUI.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/bean/User.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/service/Service.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/service/UserLogin.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/service/UserLoginImpl.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/service/UserRegister.java (100%) rename {test => project}/JAVA_MVC/src/main/java/my/code/service/UserRegisterImpl.java (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/APP.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/Dao/UserDao.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/Dao/UserDaoImpl.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/UI/MainUI.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/bean/User.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/service/Service.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/service/UserLogin.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/service/UserLoginImpl.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/service/UserRegister.class (100%) rename {test => project}/JAVA_MVC/target/classes/my/code/service/UserRegisterImpl.class (100%) create mode 100644 project/README.md rename {SnakeDemo => project/SnakeDemo}/.idea/dbnavigator.xml (100%) rename {SnakeDemo => project/SnakeDemo}/.idea/misc.xml (100%) rename {SnakeDemo => project/SnakeDemo}/.idea/modules.xml (100%) rename {SnakeDemo => project/SnakeDemo}/.idea/workspace.xml (100%) rename {SnakeDemo => project/SnakeDemo}/SnakeDemo.iml (100%) rename {SnakeDemo => project/SnakeDemo}/out/production/SnakeDemo/com/snake/Snake.class (100%) rename {SnakeDemo => project/SnakeDemo}/out/production/SnakeDemo/com/snake/Test.class (100%) rename {SnakeDemo => project/SnakeDemo}/src/com/snake/Snake.java (100%) rename {SnakeDemo => project/SnakeDemo}/src/com/snake/Test.java (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..082b679 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,61 @@ +# 贡献指南 + +欢迎您对我们的开源技术文档仓库做出贡献!我们非常感谢您的帮助,以下是一些建议和指导,以确保贡献的顺利进行。 + +## 贡献方式 + +您可以通过以下方式贡献: + +1. **报告问题**:发现了文档中的错误或有改进的地方?请创建一个 Issue 来报告问题。 + +2. **提出改进建议**:如果您有关于文档结构、内容或样式的建议,请通过 Issue 提出您的想法。 + +3. **提交项目**:如果您有自己的项目并希望分享,欢迎提交 Pull Request。 + +## 报告问题和提出建议 + +1. 在我们的 [Issues 页面](https://gitee.com/TSGU-OSC/Java_Projects/issues) 创建一个新的 Issue。 + +2. 选择相应的标签,例如“bug”或“enhancement”。 + +3. 提供清晰而详细的说明,包括问题的复现步骤(如果是报告问题)或您的建议。 + +## 提交项目 + +1. Fork 这个仓库并在本地克隆它: + + ```bash + git clone https://github.com/your-username/your-repo-name.git + ``` +2. 在此目录下新建目录,以内容命名 + ```bash + cd ./project + mkdir your_directory + ``` +3. 进入您刚刚创建的目录,将您的新项目放入到目录下并创建编辑您的markdown文档 + ```bash + cd ./your_directory + touch README.md + vim README.md + ``` +4. 提交您的修改 + ```bash + git add . + git commit -m "Add/modify your-documentation" + ``` +5. 推送到您的Fork + ```bash + git push origin feature/your-feature + ``` +6. 创建一个 Pull Request(PR): + +- 到您的 Fork 页面,点击 "New Pull Request"。 +- 选择要将您的修改合并到的目标分支。 +- 提供清晰而简洁的 PR 描述。 +7. 我们将审查您的 PR,并在需要时提出建议或请求修改。 + +## 注意事项 +- 请确保您的文档使用正确的 Markdown 语法,并注意格式的一致性。 +- 如果您贡献的是新的主题,请在目录中添加相应的链接。 +- 我们鼓励包含适当的图片、图表等以提高文档的可读性。如有图片请将图片放入image目录下。 +- 不要提交二进制可执行文件或者目标文件等 \ No newline at end of file diff --git a/README.md b/README.md index 4aaa0b9..f91ca09 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,41 @@ -# Java 项目分享 -欢迎来到开放原子开源社团Java项目分享仓库!这里是一个用于分享和学习Java项目的地方。您可以在这里展示您自己的Java项目,并与其他开发者分享您的代码、经验和见解。 +# Java_Projects仓库介绍 -## 项目列表 -在这个仓库中,我们将分享各种类型的Java项目。以下是一些可以在这里找到的项目示例: +*** -* [贪吃蛇](/SnakeDemo) -* [MVC](/test/JAVA_MVC) +## 一、仓库简介 -## 如何贡献 -我们欢迎您贡献自己的Java项目到这个仓库中。如果您想分享您的项目,可以按照以下步骤: +📢 Java_Projects仓库是一个存放关于Java的项目的代码仓库。这个仓库中的项目都是使用Java编写的,旨在提供各种Java应用的实现和案例。 -* Fork 这个仓库并克隆到您的本地环境。 -* 在您的本地环境中,创建一个新的分支并添加您的项目代码。 -* 将您的代码推送到您的 Forked 仓库中。 -* 提交一个 Pull Request,描述您的项目和所做的更改。 -* 我们会审核您的贡献,并将您的项目添加到仓库中。 +## 二、主要内容 -## 学习资源推荐 -如果您对Java开发还有需要进一步学习的地方,以下是一些学习资源推荐: +😃 本仓库中的项目都是使用IntelliJ IDEA +开发的,具有高效、稳定和易于维护的特点。IntelliJ IDEA是一个流行的Java集成开发环境(IDE),它提供了强大的代码编辑、调试和运行功能。 -* [Oracle Java 文档](https://docs.oracle.com/en/java/):Oracle 官方提供的Java文档,包含了Java SE 和 Java EE 的详细文档和教程。 -* [Java 教程 - w3cschool](https://www.w3cschool.cn/java/):w3cschool 提供的Java教程,适合初学者入门学习。 -* [Java编程思想](https://book.douban.com/subject/2130190/):Bruce Eckel 著的经典Java编程指南,深入讲解了Java的核心概念和编程技巧。 \ No newline at end of file +### 2. 文件夹结构 + +* 📂 [**project文件夹**:](./project)在此文件夹中,你可以找到一些已经写好的Java案例,你可以通过这些案例学习如何使用Java_Projects仓库的代码,以及如何定制和扩展案例的功能。 + +### 3. 运行要求 + +💾 要运行Java_Projects仓库中的项目,你需要先下载安装IntelliJ IDEA和jdk。安装完成后,你可以通过编译和运行仓库中的代码来启动项目。 + +### 4. IntelliJ IDEA官网 + +- ⚡IntelliJ IDEA的官网是 https://www.jetbrains.com/zh-cn/idea/ + +- 🚀 你也可以[点击这里](https://www.jetbrains.com/zh-cn/idea/) + +## 三、使用方式 + +- 😁 要使用Java_Projects仓库,首先你需要克隆或下载仓库代码。然后使用IntelliJ IDEA按照仓库中的说明进行编译和运行。此外,你也可以查看[project](./project)文件夹中的案例,以了解如何定制和扩展案例的功能。 + +## 四、提交方式 + +- 🌟 工程文件请提交到 [请点击这里](./project/README.md) + +- ☘️ 命名方式请参照 [SnakeDemo](./project/SnakeDemo) + + +# 贡献指南 + +📖 如果你有兴趣贡献项目或发现了错误,请参考我们的 [贡献指南](./CONTRIBUTING.md) \ No newline at end of file diff --git a/test/JAVA_MVC/.DS_Store b/project/JAVA_MVC/.DS_Store similarity index 100% rename from test/JAVA_MVC/.DS_Store rename to project/JAVA_MVC/.DS_Store diff --git a/test/JAVA_MVC/.idea/.gitignore b/project/JAVA_MVC/.idea/.gitignore similarity index 100% rename from test/JAVA_MVC/.idea/.gitignore rename to project/JAVA_MVC/.idea/.gitignore diff --git a/test/JAVA_MVC/.idea/compiler.xml b/project/JAVA_MVC/.idea/compiler.xml similarity index 100% rename from test/JAVA_MVC/.idea/compiler.xml rename to project/JAVA_MVC/.idea/compiler.xml diff --git a/test/JAVA_MVC/.idea/dataSources.xml b/project/JAVA_MVC/.idea/dataSources.xml similarity index 100% rename from test/JAVA_MVC/.idea/dataSources.xml rename to project/JAVA_MVC/.idea/dataSources.xml diff --git a/test/JAVA_MVC/.idea/jarRepositories.xml b/project/JAVA_MVC/.idea/jarRepositories.xml similarity index 100% rename from test/JAVA_MVC/.idea/jarRepositories.xml rename to project/JAVA_MVC/.idea/jarRepositories.xml diff --git a/test/JAVA_MVC/.idea/libraries/mysql_connector_j_8_0_32.xml b/project/JAVA_MVC/.idea/libraries/mysql_connector_j_8_0_32.xml similarity index 100% rename from test/JAVA_MVC/.idea/libraries/mysql_connector_j_8_0_32.xml rename to project/JAVA_MVC/.idea/libraries/mysql_connector_j_8_0_32.xml diff --git a/test/JAVA_MVC/.idea/misc.xml b/project/JAVA_MVC/.idea/misc.xml similarity index 100% rename from test/JAVA_MVC/.idea/misc.xml rename to project/JAVA_MVC/.idea/misc.xml diff --git a/test/JAVA_MVC/.idea/uiDesigner.xml b/project/JAVA_MVC/.idea/uiDesigner.xml similarity index 100% rename from test/JAVA_MVC/.idea/uiDesigner.xml rename to project/JAVA_MVC/.idea/uiDesigner.xml diff --git a/test/JAVA_MVC/pom.xml b/project/JAVA_MVC/pom.xml similarity index 100% rename from test/JAVA_MVC/pom.xml rename to project/JAVA_MVC/pom.xml diff --git a/test/JAVA_MVC/src/main/java/my/code/APP.java b/project/JAVA_MVC/src/main/java/my/code/APP.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/APP.java rename to project/JAVA_MVC/src/main/java/my/code/APP.java diff --git a/test/JAVA_MVC/src/main/java/my/code/Dao/UserDao.java b/project/JAVA_MVC/src/main/java/my/code/Dao/UserDao.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/Dao/UserDao.java rename to project/JAVA_MVC/src/main/java/my/code/Dao/UserDao.java diff --git a/test/JAVA_MVC/src/main/java/my/code/Dao/UserDaoImpl.java b/project/JAVA_MVC/src/main/java/my/code/Dao/UserDaoImpl.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/Dao/UserDaoImpl.java rename to project/JAVA_MVC/src/main/java/my/code/Dao/UserDaoImpl.java diff --git a/test/JAVA_MVC/src/main/java/my/code/UI/MainUI.java b/project/JAVA_MVC/src/main/java/my/code/UI/MainUI.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/UI/MainUI.java rename to project/JAVA_MVC/src/main/java/my/code/UI/MainUI.java diff --git a/test/JAVA_MVC/src/main/java/my/code/bean/User.java b/project/JAVA_MVC/src/main/java/my/code/bean/User.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/bean/User.java rename to project/JAVA_MVC/src/main/java/my/code/bean/User.java diff --git a/test/JAVA_MVC/src/main/java/my/code/service/Service.java b/project/JAVA_MVC/src/main/java/my/code/service/Service.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/service/Service.java rename to project/JAVA_MVC/src/main/java/my/code/service/Service.java diff --git a/test/JAVA_MVC/src/main/java/my/code/service/UserLogin.java b/project/JAVA_MVC/src/main/java/my/code/service/UserLogin.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/service/UserLogin.java rename to project/JAVA_MVC/src/main/java/my/code/service/UserLogin.java diff --git a/test/JAVA_MVC/src/main/java/my/code/service/UserLoginImpl.java b/project/JAVA_MVC/src/main/java/my/code/service/UserLoginImpl.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/service/UserLoginImpl.java rename to project/JAVA_MVC/src/main/java/my/code/service/UserLoginImpl.java diff --git a/test/JAVA_MVC/src/main/java/my/code/service/UserRegister.java b/project/JAVA_MVC/src/main/java/my/code/service/UserRegister.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/service/UserRegister.java rename to project/JAVA_MVC/src/main/java/my/code/service/UserRegister.java diff --git a/test/JAVA_MVC/src/main/java/my/code/service/UserRegisterImpl.java b/project/JAVA_MVC/src/main/java/my/code/service/UserRegisterImpl.java similarity index 100% rename from test/JAVA_MVC/src/main/java/my/code/service/UserRegisterImpl.java rename to project/JAVA_MVC/src/main/java/my/code/service/UserRegisterImpl.java diff --git a/test/JAVA_MVC/target/classes/my/code/APP.class b/project/JAVA_MVC/target/classes/my/code/APP.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/APP.class rename to project/JAVA_MVC/target/classes/my/code/APP.class diff --git a/test/JAVA_MVC/target/classes/my/code/Dao/UserDao.class b/project/JAVA_MVC/target/classes/my/code/Dao/UserDao.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/Dao/UserDao.class rename to project/JAVA_MVC/target/classes/my/code/Dao/UserDao.class diff --git a/test/JAVA_MVC/target/classes/my/code/Dao/UserDaoImpl.class b/project/JAVA_MVC/target/classes/my/code/Dao/UserDaoImpl.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/Dao/UserDaoImpl.class rename to project/JAVA_MVC/target/classes/my/code/Dao/UserDaoImpl.class diff --git a/test/JAVA_MVC/target/classes/my/code/UI/MainUI.class b/project/JAVA_MVC/target/classes/my/code/UI/MainUI.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/UI/MainUI.class rename to project/JAVA_MVC/target/classes/my/code/UI/MainUI.class diff --git a/test/JAVA_MVC/target/classes/my/code/bean/User.class b/project/JAVA_MVC/target/classes/my/code/bean/User.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/bean/User.class rename to project/JAVA_MVC/target/classes/my/code/bean/User.class diff --git a/test/JAVA_MVC/target/classes/my/code/service/Service.class b/project/JAVA_MVC/target/classes/my/code/service/Service.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/service/Service.class rename to project/JAVA_MVC/target/classes/my/code/service/Service.class diff --git a/test/JAVA_MVC/target/classes/my/code/service/UserLogin.class b/project/JAVA_MVC/target/classes/my/code/service/UserLogin.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/service/UserLogin.class rename to project/JAVA_MVC/target/classes/my/code/service/UserLogin.class diff --git a/test/JAVA_MVC/target/classes/my/code/service/UserLoginImpl.class b/project/JAVA_MVC/target/classes/my/code/service/UserLoginImpl.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/service/UserLoginImpl.class rename to project/JAVA_MVC/target/classes/my/code/service/UserLoginImpl.class diff --git a/test/JAVA_MVC/target/classes/my/code/service/UserRegister.class b/project/JAVA_MVC/target/classes/my/code/service/UserRegister.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/service/UserRegister.class rename to project/JAVA_MVC/target/classes/my/code/service/UserRegister.class diff --git a/test/JAVA_MVC/target/classes/my/code/service/UserRegisterImpl.class b/project/JAVA_MVC/target/classes/my/code/service/UserRegisterImpl.class similarity index 100% rename from test/JAVA_MVC/target/classes/my/code/service/UserRegisterImpl.class rename to project/JAVA_MVC/target/classes/my/code/service/UserRegisterImpl.class diff --git a/project/README.md b/project/README.md new file mode 100644 index 0000000..a25e9c2 --- /dev/null +++ b/project/README.md @@ -0,0 +1,13 @@ +# ✨ Java项目文件收集 + +## project文件夹介绍 + +🗺️ 这个文件夹中存放着一些已经写好的Java案例。这些案例都是使用Java语言开发的,旨在展示Java的各种特性和应用场景。 + +🌟 其中,有两个值得关注的案例是贪吃蛇与MVC架构 + +- [贪吃蛇](./SnakeDemo) 贪吃蛇是一个经典的休闲游戏,玩家需要控制蛇在地图上移动,吃掉食物并避免撞到墙壁或自己的身体。这个案例展示了如何使用Java编写一个简单的游戏,包括图形界面、游戏逻辑和事件处理。通过这个案例,你可以学习如何使用Java开发游戏应用程序。 + +- [MVC框架](./JAVA_MVC) 是一种常用的软件设计模式,用于将应用程序的数据模型、用户界面和控制逻辑分离。这个案例展示了如何使用Java实现一个简单的MVC框架,包括模型、视图和控制器的设计和交互。通过这个案例,你可以学习如何使用Java构建可扩展和可维护的应用程序架构。 + +🚩 这些案例都是非常实用的项目,你可以根据需要对它们进行修改和扩展,以满足自己的需求。同时,通过学习和使用这些案例,你可以更好地了解Java编程语言的特性和应用场景,提高自己的开发技能和经验。 diff --git a/SnakeDemo/.idea/dbnavigator.xml b/project/SnakeDemo/.idea/dbnavigator.xml similarity index 100% rename from SnakeDemo/.idea/dbnavigator.xml rename to project/SnakeDemo/.idea/dbnavigator.xml diff --git a/SnakeDemo/.idea/misc.xml b/project/SnakeDemo/.idea/misc.xml similarity index 100% rename from SnakeDemo/.idea/misc.xml rename to project/SnakeDemo/.idea/misc.xml diff --git a/SnakeDemo/.idea/modules.xml b/project/SnakeDemo/.idea/modules.xml similarity index 100% rename from SnakeDemo/.idea/modules.xml rename to project/SnakeDemo/.idea/modules.xml diff --git a/SnakeDemo/.idea/workspace.xml b/project/SnakeDemo/.idea/workspace.xml similarity index 100% rename from SnakeDemo/.idea/workspace.xml rename to project/SnakeDemo/.idea/workspace.xml diff --git a/SnakeDemo/SnakeDemo.iml b/project/SnakeDemo/SnakeDemo.iml similarity index 100% rename from SnakeDemo/SnakeDemo.iml rename to project/SnakeDemo/SnakeDemo.iml diff --git a/SnakeDemo/out/production/SnakeDemo/com/snake/Snake.class b/project/SnakeDemo/out/production/SnakeDemo/com/snake/Snake.class similarity index 100% rename from SnakeDemo/out/production/SnakeDemo/com/snake/Snake.class rename to project/SnakeDemo/out/production/SnakeDemo/com/snake/Snake.class diff --git a/SnakeDemo/out/production/SnakeDemo/com/snake/Test.class b/project/SnakeDemo/out/production/SnakeDemo/com/snake/Test.class similarity index 100% rename from SnakeDemo/out/production/SnakeDemo/com/snake/Test.class rename to project/SnakeDemo/out/production/SnakeDemo/com/snake/Test.class diff --git a/SnakeDemo/src/com/snake/Snake.java b/project/SnakeDemo/src/com/snake/Snake.java similarity index 100% rename from SnakeDemo/src/com/snake/Snake.java rename to project/SnakeDemo/src/com/snake/Snake.java diff --git a/SnakeDemo/src/com/snake/Test.java b/project/SnakeDemo/src/com/snake/Test.java similarity index 100% rename from SnakeDemo/src/com/snake/Test.java rename to project/SnakeDemo/src/com/snake/Test.java -- Gitee From 0816f9809b174c9598dc9c153c7161341b7886d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=8E=E9=B9=8F=20=E5=A4=A7?= <1903877378@qq.com> Date: Wed, 3 Jan 2024 21:26:55 +0800 Subject: [PATCH 2/2] update file --- project/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/README.md b/project/README.md index a25e9c2..4413162 100644 --- a/project/README.md +++ b/project/README.md @@ -6,7 +6,7 @@ 🌟 其中,有两个值得关注的案例是贪吃蛇与MVC架构 -- [贪吃蛇](./SnakeDemo) 贪吃蛇是一个经典的休闲游戏,玩家需要控制蛇在地图上移动,吃掉食物并避免撞到墙壁或自己的身体。这个案例展示了如何使用Java编写一个简单的游戏,包括图形界面、游戏逻辑和事件处理。通过这个案例,你可以学习如何使用Java开发游戏应用程序。 +- [贪吃蛇](./SnakeDemo) 是一个经典的休闲游戏,玩家需要控制蛇在地图上移动,吃掉食物并避免撞到墙壁或自己的身体。这个案例展示了如何使用Java编写一个简单的游戏,包括图形界面、游戏逻辑和事件处理。通过这个案例,你可以学习如何使用Java开发游戏应用程序。 - [MVC框架](./JAVA_MVC) 是一种常用的软件设计模式,用于将应用程序的数据模型、用户界面和控制逻辑分离。这个案例展示了如何使用Java实现一个简单的MVC框架,包括模型、视图和控制器的设计和交互。通过这个案例,你可以学习如何使用Java构建可扩展和可维护的应用程序架构。 -- Gitee