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

...全文
194 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

285

社区成员

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

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