EE308 Lab2-2

qq_52192330 qq_52192330 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZU202201
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/608859318
MU STU ID and FZU STU ID20122764_832001319
Teammate1's MU STU ID and FZU STU ID20123833_832001327
Teammate2's MU STU ID and FZU STU ID20122608_832001326
Teammate1's blog linkhttp://t.csdn.cn/JsKtJ
Teammate2's blog linkhttp://t.csdn.cn/YPLBy
GitHub linkXINYUE1234/EE308 at master (github.com)
Video demo linkEE308-博饼小程序 - 微信开发者工具_哔哩哔哩_bilibili

 

 

 目录

1.PSP and learning progress bar

2.Key points of programming

3. Pair programming experience

4.Events that take a long time

5.Photo

8.Summary


1.PSP and learning progress bar

Personal Software Process StagesEstimated time (minutes)Real time (minutes)
Planning1020
Estimate--
Development300600
Analysis3040
Design Spec6090
Design Review3030
Coding Standard1010
Design3060
Coding600800
Code Review3060
Test6060
Reporting--
Test Report2020
Size Measurement1020
Postmortem & Process Improvement Plan2060
total12101870

 Learning progress bar

weekAdded code (line)Cumulative code (lines)Study Time this week (hours)Cumulative learning time (hours)Important Growth
17007001010Learned the basic code logic of wechat developer tools and javascript front-end, page format, how to import pictures and tables into the page and other knowledge.
280015001424Solve the core code of bobing small program, beautify the page, fix code bugs, and achieve related functions.

2.Key points of programming

1)In Lab2-1, we used Axure RP10 to complete the page design of Bobing, which looks very simple. But in Lab2-2, we need to complete the whole design of wechat small program, which is a very big project. Since we chose to use the wechat developer tool in Lab2-2, we had to spend a few days learning JavaScript and working hard to use it. This was a great difficulty in the beginning

2)The second difficulty we encountered was how to implement the function of random dice. Since our team directly replaced the process of rolling dice with GIF pictures, what we had to solve was how to directly convert random numbers into corresponding dice pictures.
Here is our code to solve this problem:

function RandomNumBoth(Min,Max){
  var Range = Max - Min;
  var Rand = Math.random();
  var num = Min + Math.round(Rand * Range); //四舍五入
  return num;
} //随机数生成
 function dicejudge(dice) {
  var n;
  if(dice=="../image/1.png")
  n=1;
  else if(dice=="../image/2.png")
  n=2;
  else if(dice=="../image/3.png")
  n=3;
  else if(dice=="../image/4.png")
  n=4;
  else if(dice=="../image/5.png")
  n=5;
  else if(dice=="../image/6.png")
  n=6;
  return n;
 }//判断骰子的点数
function judge(dic1,dic2,dic3,dic4,dic5,dic6) {
 var dicarr=[0,0,0,0,0,0];
 dicarr[dicejudge(dic1)-1]++;
 dicarr[dicejudge(dic2)-1]++;
 dicarr[dicejudge(dic3)-1]++;
 dicarr[dicejudge(dic4)-1]++;
 dicarr[dicejudge(dic5)-1]++;
 dicarr[dicejudge(dic6)-1]++;
if((dicarr[0]==2&&dicarr[3]==4)||dicarr[3]==6||dicarr[0]==6||dicarr[5]==6||dicarr[3]==5||dicarr[3]==4)
return "状元";
else if((dicarr[0]==1&&dicarr[1]==1&&dicarr[2]==1&&dicarr[3]==1&&dicarr[4]==1&&dicarr[5]==1))
return "对堂";
else if(dicarr[3]==3)
return "三红";
else if(dicarr[5]==4)
return "四进";
else if(dicarr[3]==2)
return "二举";
else if(dicarr[3]==1)
return "一秀";
else
return "再接再厉";

}

3)The third difficulty we encountered was how to save the dice points earned by different players in the "multiplayer" game, which was crucial because we needed to keep track of the outcome of each round when the player rolled the dice.

4)The fourth difficulty we encountered was how to implement a small app for online play with many people. The key is how to share the same server and share data. Due to limited time and ability, our team has reached a bottleneck in learning and using wechat developers and JavaScript, and this function has not been realized yet.

3. Pair programming experience

In a team project, the cooperation of team members is very important. Since we are a team of three, our division of labor needs to be more detailed. I was mainly responsible for writing the core part of the code and solving the bugs in the code operation. The other two team members, one was responsible for the UI part of the mini program, and the other was responsible for sorting out and updating the materials of Lab2-1 and integrating them into our mini program.
In the process of completing tasks, our team members would keep proper communication with each other, discuss with them when faced with difficulties, and let each other know the progress of their tasks at any time. When the task is completed to a certain extent, we will merge the corresponding parts of the code for code detection, so as to complete the task more efficiently. This is the experience of our group.

4.Events that take a long time

1)The first is the choice of coding platform. We did not find a suitable platform to make this small program at the beginning. The options include vue, VScode, wechat developer tools and so on. After some negotiation and searching, we finally decided to use the platform of wechat developer tools. Because it standardized good development, simple operation, easy for beginners to use.
2)The second is how to randomly generate 1-6 points and put them on the dice. We had never learned JavaScrip, but in this project, we all thought it was very important. Therefore, we did some Java language learning, which consumed a lot of time and energy, and the temporary learning of JavaScrip language brought us certain challenges.
3)The third thing that took us a long time was the design of the mini program UI, including the scene switching and order, the selection of the background image, the selection of the button position, the selection of the button pattern and so on.
4)The fourth is the test interface. Every time you write a method, you test it repeatedly to see if there are any errors. It is also about communicating judgments and data requirements, functions that need to be written out and returned.
5)Fourth, implement cross-domain. At the beginning, the back-end can only obtain data locally, and after configuring cross-domain, it can obtain data within the LAN, which is convenient for the front-end to obtain required data. However, due to limited time and capacity, we were unable to implement this feature in the end.

5.Photo

6.GitHub link

XINYUE1234/EE308 at master (github.com)

7.Video demo link

EE308-博饼小程序 - 微信开发者工具_哔哩哔哩_bilibili

8.Summary

Through this bobing mini program project, I understood and learned the basic knowledge of Axure RP10, wechat developer tools and javascript, and experienced the production process of mini program, which was strange but novel to me and full of a sense of accomplishment. I have learned a lot in the process of cooperating with my team, such as how to communicate effectively, learn from each other, and give full play to our greatest strengths to learn and progress together. Although the final small program to achieve the function to be improved, but I task our project is relatively successful.

...全文

相关推荐

EE-308 LAB4 final version.7z

这是本次实验的压缩包

晨起剪桃花

无刷直流电机模糊神经网络PID-模糊PID-传统PID三种控制对比Simulink仿真

内容概要:本文系统研究了无刷直流电机(BLDCM)在Simulink环境下的三种控制策略:传统PID控制、模糊PID控制以及模糊神经网络PID控制。研究基于三相桥式星型全控电路结构,构建了转速电流双闭环控制系统,并通过Matlab/Simulink搭建仿真模型,全面对比分析了三种算法在动态响应速度、稳态精度、抗干扰能力及系统鲁棒性等方面的性能差异。文章深入阐述了各控制方法的设计原理与实现机制,重点突出了模糊逻辑与神经网络在自适应调节PID参数方面的优势,验证了智能控制算法在提升电机控制品质上的显著效果。同时,文档提供了详实的仿真资源、参考文献和技术说明,有助于读者复现实验并深化对先进控制策略的理解与应用。 适合人群:具备自动控制理论基础和MATLAB/Simulink仿真能力的电气工程、自动化及相关专业的研究生、科研人员及工程技术人员,特别适用于从事电机驱动系统设计、智能控制算法开发等领域的专业人士。 使用场景及目标:①用于教学与科研中对比分析传统PID、模糊PID与模糊神经网络PID在无刷直流电机调速系统中的控制性能差异;②为高性能电机控制器的设计与优化提供仿真验证平台,支持参数整定与控制策略选型;③辅助完成毕业设计、科研项目或工业应用中的控制算法评估与改进。 阅读建议:建议读者结合所提供的Simulink模型与参考文献,逐步复现仿真过程,重点关注不同控制器的参数整定方法、响应曲线特征及其在负载扰动下的表现。可进一步拓展研究方向,如引入无位置传感器控制、滑模观测器或模型预测控制等先进控制技术,以深化对现代电机智能控制体系的理解与创新能力。

欢多天天写代码

分省份-城投债信用利差跟踪(私募债)20260206.xlsx

分省份-城投债信用利差跟踪(私募债)20260206.xlsx

温柔-的-女汉子

高校技术转移办公室人员如何高效管理技术成果全生命周期?.docx

科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

傲梅备份软件-windows系统

文件增量、全量定时备份

丁先生5788
评论
收藏 已收藏
分享
返回顶部