EE308_LAB2-2

832002220赵云龙 2022-11-11 16:47:37

EE308_LAB2-2

  • Table
  • GitHub link
  • PSP
  • Learning progress bar
  • Key points of programming
  • Pair programming experience
  • Photo
  • Events that take a long time
  • Summary
  • video demonstration

Table

The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZU202201
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/608859318
The Aim of This AssignmentImplement the Bobing software
MU STU ID and FZU STU ID<20123531_832002220>
Partner MU STU ID and FZU STU ID<20124015_832002226>
Teammate's Bloghttp://t.csdn.cn/KziPA

https://github.com/YUNLONG892a/EE308

PSP

Personal Software Process StagesEstimated time(min)Time(min)
Planning3030
Estimate3040
Development350370
Analysis6060
Design Spec5050
Design Review5040
Coding Standard6070
Design120130
Coding400500
Code Review4020
Test3030
Reporting8080
Test Report3040
Size Measurement2040
Postmortem&Process Improvement3050
Total13801550

Learning progress bar

Week NAdded code (line)Cumulative code (lines)Study Time this week (hours)Cumulative learning events (hours)Important Growth
135035099Learned the common knowledge of html,css and javascript front-end such as basic code logic, page formatting, how to import images and tables into the page, etc.
214501800815Hands-on web page creation and layout, learn how to link html, css and javascript related data to the operation, beautify the page, and implement related functions.

Key points of programming

1.The first difficulty we encountered was how to realize the function of rolling dice randomly, because our team wanted to animate the process of rolling dice, which meant that we could not directly convert random numbers into corresponding roll pictures. We first recorded roll pictures corresponding to different running times. The random roll of the dice is realized by converting random numbers into the running time of the animation.

2.The second difficulty we encountered was how to save the prizes won by different players in the "Multiplayer Game" and pass them to the final "Award Situation" interface. We looked for many methods, but none of them succeeded. Finally, we chose to implement the "multiplayer" function in an html file. This can be used to store the corresponding awards of different players through an array, but it also requires different ICONS and buttons to be hidden or displayed in different interfaces, which we have been debugging and adjusting for a long time.

3.The third difficulty we encountered was how to rank the final awards won by different players in the "Multiplayer Game". In order to make the final "award screen" more enjoyable, we added a weight to different awards. The weight of a large award was higher, and the weight of a small award was lower, so that each player would get a weight as well as an award. We store the corresponding weights in an array, and through bubble sort, we sort the players and the corresponding awards according to the size of the weights, from largest to smallest, and display them in the "Award Situation".

Pair programming experience

In a team project, teamwork of team members is very important. The first thing we should do is to have a clear division of labor. Two people determine each other's tasks and complete them efficiently. We will set time to complete the corresponding tasks, and supervise and urge each other.

In the process of completing the task, teammates should maintain proper communication, discuss with teammates when encountering difficulties, and let each other know their task progress at all times. When the task is completed to a certain extent, corresponding code parts can be merged to carry out code detection and complete the task more efficiently.

Photo

img

Events that take a long time

1.The first thing that took us a long time was the assignment of tasks, which was divided into two parts. I was mainly responsible for the coding of single player and multiplayer games, and my teammates were mainly responsible for the coding of the home page and game rules interface, as well as the layout, background selection and color adjustment of all interfaces.

2.The second thing that took us a long time was the design of the web page, including the selection of the background picture, the selection of the position of the button, the selection of the pattern of the button and so on.

3.The third thing that took us a long time was the implementation of the function of rolling dice. At first, we just wanted to realize the process of rolling dice by switching pictures. Later, after a long discussion, we decided to add animation to make the process of rolling dice more enjoyable. Similarly, writing code takes a lot of time.

Summary

This Bobing project made me understand and learn the basic knowledge of html, css and javascript, and transformed the process of rolling dice into the form of animation. Besides the function of networking, other functions were basically realized. While completing the task, I also learned the front-end content and learned something about the design of web pages.

video demonstration

https://www.bilibili.com/video/BV1wP411w7EQ/?share_source=copy_web&vd_source=0232431e4404610973e451f5b460e57c

...全文
351 回复 打赏 收藏 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
内容概要:本文介绍了基于Matlab代码实现的电力系统机组组合优化调度方法,适用于IEEE14、IEEE30和IEEE118节点标准测试系统。该资源聚焦于电力系统中发电机组的优化调度问题,通过智能优化算法实现对机组启停、出力分配等决策的最优化,旨在降低运行成本、提升系统可靠性和经济性。文中系统阐述了从数学模型构建、多类型约束处理到优化算法设计与仿真实验验证的完整研究流程,并提供了可复现的Matlab代码,涵盖目标函数设定、约束条件建模及算法求解过程,适用于电力系统调度、能源优化等相关领域的科研与教学实践。; 适合人群:具备电力系统分析、运筹学基础及Matlab编程能力的高校学生、科研人员和工程技术人员,尤其适合从事电力系统优化、智能算法应用研究的研究生与青年学者。; 使用场景及目标:①用于电力系统机组组合(UC)问题的教学实验与课程设计;②支撑科研工作中对遗传算法、粒子群算法等智能优化算法在电力系统调度中应用的研究;③为含可再生能源接入的现代电网调度提供仿真平台与技术参考,助力低碳电力系统规划与运行。; 阅读建议:建议读者结合电力系统调度理论与优化建模知识,深入理解机组组合问题的数学本质与物理约束,再通过Matlab代码进行仿真实践,重点关注算法收敛性、多目标权衡策略与不同测试系统间的性能对比,以实现理论与实践的深度融合。

286

社区成员

发帖
与我相关
我的任务
社区描述
福州大学 梅努斯国际工程学院 软件工程(2022秋) 教学
软件工程 高校
社区管理员
  • LinQF39
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧