EE308 Lab4

Ti_Lo 2021-10-07 19:23:35


1.GitHub Repository

2.PSP Form

3.Assumption of Implementation

4.Function Demonstration

5.Difficulties of Implementation

6.Experience of Pairing Cooperation

The Link Your Class
The Link of Requirement of This Assignment
The Aim of This AssignmentDevelop a BoBing software
MU STU ID and FZU STU ID19104642_831902206
Teammate's MU STU ID and FZU STU ID 19104278_831902208
Teammate's blog link

1.GitHub Repository

2.PSP Form

PSP StagesEstimated Time/hoursCompleted Time/hours
Time Estimation0.20.2
Requirement Analysis0.70.5
Design Documents--
Design Review--
Code Specification0.51
Specific Design22.5
Specific Coding2024
Code Review--
Test Report--
Calculation Workload0.10.1


3.Assumption of Implementation

Considering that we will use wechat developer tools to make small programs next, we choose to use it. After determining the tools to use, we began to make the small program imaged in lab3.

The following is the expectation we made in lab3:

In terms of user experience, most users can't bear to register an account every time they open an application, so we use wechat login in this application to avoid the cumbersome step of registration.

Therefore, in the hall interface, we mainly want to enable players to join the game, view the battle records, view the rules and set the volume.


In the Bobing game, the game interface will be the interface that users stay most, so we focus on the Bobing interface design.

In the game interface, we hope to display the player's image after joining the game, and you can see the rewards of the current BoBing player at the bottom of the game. Of course, we also need a button to return to the hall interface, this button is to allow players to exit the game when they want. At the same time, we also set up the interface of remaining rewards, so that players can view the current remaining rewards at any time. We also add the Setting button and Rules button here so that you can see the rules and adjust the volume.


At the end interface of the small program, we designed to display all the rewards for each player in the round of game.

Then as long as you click to leave the game, you will jump back to the hall interface.

The above is our idea of the whole applet in lab3. Next, we will enter the implementation stage.


4.Function Demonstration

First of all, we considered the issue of weather we want to make networking. After discussion, we believe that it takes a lot of time to realize networking with our ability in a short time. In this pairing experiment, it is unrealistic to complete it within the predetermined time, so we decided to give up the networking function.


Next, we begin to realize the functions of the hall:


Click the Adding Game button and we can enter the game interface, also click the Reward button and we can see the rewards in last game for each player. We haven't add anything about establishing game, because we don't decide to make internet connecting.

Of course, if you click the Rules button, it will pop up the BoBing rules, like this:


Then let's go to the game interface, click on the seat to join the player and start the game:


In the process of the game, the points you throw each time will be displayed on the screen. If your dice points combination wins a reward (take YiXiu as an example here), there will also be corresponding prompts displayed on the screen.


At the same time, the reward won by the current player will also be displayed in the box below. If someone won the ZhuangYuan, it also will display in the bottom with the point of the ZhuangYuan.


We also made a reward counting panel. It will tell you how many rewards are left. When all the rewards are drawn, the game is over.


We also added a interesting plug-in: we added a switch when we shake the phone, the BoBing game will start and the phone also will quake.


After the end of a round of game, the small program will jump to the end interface. The rewards obtained by each player will be displayed in order on the end interface:


5.Difficulties of Implementation

because we had never been in contact with writing small programs before, we encountered many difficulties in doing this assignment. 

  • The first issue is the location of the UI. We want to add pictures to the buttons, place the background on the last layer, embed text into the pictures and make the buttons transparent... These are all the problems we encountered when joining the UI.
  • Another big problem is logic problem. We have tried for a long time on how to output the prizes obtained by the corresponding players in order, and we have also spent a lot of time on adding the rewards obtained by the players according to the BoBing rules.

For the UI problem, we found the relevant code on the Internet and constantly debugged, and finally successfully realized the UI layout we wanted. For logic problems, we also spend a lot of time debugging and repeated testing, and finally succeed. Although we encountered many problems, we tried our best to overcome them all, and finally completed the small program in a limited time.


6.Experience of Pairing Cooperation

Pairing work experience:

  1. It has improved my communication ability and cooperation ability with my teammates, and the division of labor and cooperation between us is more clear. When we encounter difficulties, we can solve them together, not just finish our own work as before.
  2. This work also enhanced my ability to write code. I learned how to use wechat developer tools to write small programs, and have some depth understanding about it.


7.Demonstration Video Link

390 1 打赏 收藏 举报
1 条回复
韦知辰 2021-10-11


  • 打赏
  • 举报



福州大学 梅努斯国际工程学院 软件工程 教学
  • 单步调试
2021-10-08 02:02
2021-10-08 00:39
2021-10-08 00:23
2021-10-07 19:38
2021-10-07 19:37
2021-10-07 19:35