Coursework, Computer sciences and Information technology

Coursework, Computer sciences and Information technology

high Roller interface design

 
Project description

 

COMP3751/COMP8751 Interactive Computer Systems
Flinders University
| School of Computer Science, Engineering and Mathematics
1
Prac
4
High Roller
: Week 8

9
Task
Download
HighRoller.zip
to your working directory, then compile and run the
program. The
program implements a program that displays a picture of a dice. Your task
is to add features to the
program.
Note: you are not allowed to modify
Spots.java
.
Core (2 marks): Level 1

2
Level 1:
Roll Again
1.
Mod
ify the program so that it works
as follows
. Pushing the
Roll again
button should
cause the dice to display a new random number
between 1 and 6
. Pushing the
Step
button should display the number with
the next higher
/lower
value
depending on
which radio button is selected. When the number reaches 1 or 6, it will be reset to a
random number between 1 and 6.
Take care with the layout of the interface
components.
In particular, make sure that the window behaves sensibly when
resized.
When resized, the left two panels stay unchanged, but the gap between
them increases to make them
stay at the to
p/bottom, while the dice panel will be
resized to fill the space.
Of cou
rse, the actual appearance of the interface
components will depend on the look
-­-
and
-­-
feel installed on the platform on which the
program is running.
COMP3751/COMP8751 Interactive Computer Systems
Flinders University
| School of Computer Science, Engineering and Mathematics
2
Level 2:
More than one dice
2.
Modify the program so that it can display 2 (or more) dice.
You need to
provide an
interface
, for example a dropdown list or a spinner
using the space between the left
two panels
for the user to specify the number of dice.
All dice should be arranged in
a grid layout, with each row having at most 3 dice.
When the number change
s, the
dice panel should be updated automatically.
3.
The
Roll again
button should generate random values for all dice. The
Step
button
should increment
/decrement
the
right
-­-
hand dice. If the value of a dice excee
ds 6
or
falls below 1
, it should be reset to
a random number
and the dice to the left
will
then
get
incremented
/decremented
.
In the above example, pushing the
Step
button once
would incremen
t the fourth
dice
to 5
. When it
reaches 6
,
it
is reset to
a random
number
and the third
dice is incremented to 5
. Pushing the
Step
button one more
time
would increment it
to 6 and after that
it is reset to
a random number
and
the
second
dice will get incremented.
Continuing this way and
a
fter
the first
dice reaches
6
, i
t is reset to
a random number
and the fourth
dice will then get incremented
again
.
To make it simpler, you can only change the radio buttons after the Roll Again
button is pressed and before the Step butt
on is pressed, which means you can’t
change Up/Do
wn while t
he step is ongoing
.
COMP3751/COMP8751 Interactive Computer Systems
Flinders University
| School of Computer Science, Engineering and Mathematics
3
Extension
(2 marks): Level 3

4
Level 3:
Themes
4.
Add
a menu that allows the user
to change the
colour scheme of the dice. For
example, you
could allow the user to select from several “themes” with names such
as “Classic” (white
on
black)
, “Tiger” (black on yellow),
“Psycho” (you
r favourite
colour combination),
or “Random” (a random theme for each dice).
Level 4:
Animation
5.
Animate the roll of the dice.
When the
Roll again
button is pressed, i
nstead of simply
setting the dice to a
new (random) value, make them display several random values
(to heighten the suspense!) before settling down. For example, you might displa
y 10
frames at intervals of 100
ms, so that the spin lasts for 1 second.
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET AN AMAZING DISCOUNT 🙂

 

© 2020 customphdthesis.com. All Rights Reserved. | Disclaimer: for assistance purposes only. These custom papers should be used with proper reference.