EE308_LAB2_2

taohhoat 2022-11-18 23:58:53

EE308LAB2_2

  • 1.PSP Form
  • 2.Key points of programming
  • 3.Coding
  • 4. The page display:
  • 5. Summarize:
  • 6.Working picture:

The Link Your Class https://bbs.csdn.net/forums/MUEE308FZU202201
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/608859318
MU STU ID and FZU STU ID20124066&832002123
Teammate's MU STU ID and FZU STU ID20124287&832002122
Teammate's blog linkhttps://bbs.csdn.net/topics/609331603
GitHub linkhttps://github.com/BlueP0118/EE308_Lab2-2/tree/6b74bb3108fe26b4823c3a39a33d5adc6843ad45
Video demo linkhttps://v.youku.com/v_show/id_XNTkxOTc5MTAzMg==.html

1.PSP Form

Personal Software Process StagesESTIMATE TIME/MINUTESREAL
TIME(MINUTE)Planning3040
Estimate2020
Development3020
Analysis6050
Design Spec4040
Design Review5040
Coding Standard----
Design6060
Coding1000+1000+
Code Review100100
Test3020
Reporting6040
Test Report2020
Size Measurement----
Postmortem&Process Improvement Plan3030
Total15301480

2.Key points of programming

Difficult functions and programming thinking

Throughout the project, we designed an App that allows you to play the "Bobing" game with very simple operations. Features are focused, with a focus on "Bobing" gameplay. We think the difficulties in the process are:

  1. We wanted to make the dice move rather than just get a static result. Finally, we decided to make the pictures of the dice with different points alternately appear at different six dice to achieve a more humane dynamic effect.

Long time events

  1. Code

We chose the more convenient Android studio to complete this project, but we are not familiar with Java and xml format interface design

  1. Interface

How did we spend a lot of time in making the dice show the dynamic effect of Chu Yizhong in the process of rolling dice

  1. Record

We are assigning the game a score and storing the data to achieve the competitive nature of the game. Again, it took a long time

3.Coding

One of a number of dice in which images alternate with different rolls


int a = Math.abs(SecureRandom.getInstance("SHA1PRNG").nextInt()) % 6 + 1;
                                    int b = Math.abs(SecureRandom.getInstance("SHA1PRNG").nextInt()) % 6 + 1;
                                    int c = Math.abs(SecureRandom.getInstance("SHA1PRNG").nextInt()) % 6 + 1;
                                    int d = Math.abs(SecureRandom.getInstance("SHA1PRNG").nextInt()) % 6 + 1;
                                    int e = Math.abs(SecureRandom.getInstance("SHA1PRNG").nextInt()) % 6 + 1;
                                    int f = Math.abs(SecureRandom.getInstance("SHA1PRNG").nextInt()) % 6 + 1;

mView.findViewById(R.id.imageView3).post(new Runnable() {
                                        @Override
                                        public void run() {
                                            ((ImageView) mView.findViewById(R.id.imageView3)).setImageResource(getDice[a]);
                                        }
                                    });

4. The page display:

Title page:

在这里插入图片描述


Rule and mode page:

在这里插入图片描述


The rules page in the upper left corner:

在这里插入图片描述


Single mode for the first button:

Matching mode for the second button then Click to enter after a successful match is displayed:

在这里插入图片描述


Room mode for the third button then enter the room number and enter:

在这里插入图片描述


Bobing page and click "博" to start shake the dice:

在这里插入图片描述


Result page:

在这里插入图片描述

5. Summarize:

It was very interesting to cooperate with my classmates to complete a ui interaction design. In this experiment, I learned to use axure to do some simple interaction operations, which made the designed interface more beautiful. And then we use android studio to design the application which based on the idea building before. During the time, we learned the basic operation to create an application and we review and reinforce programming language.

6.Working picture:

img

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

285

社区成员

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

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