Skip to main content

Beer Bottles Game Development

Programming Assignment  T3 2019 Page | 1
T32019: ICT104 Program Design and Development
Programming Assignment
Assessment type: Programming Assignment
Purpose: This assessment will allow students to demonstrate their
understanding of Java programming and object-oriented concepts, the use
of list classes in collection framework, and the use of graphical features using
swing and applets. This assessment contributes to Learning Outcomes c and
d.
Value: 20%
Due Date: Week 10 Sunday 23:55
Task Details:
Topic: Develop Java application based on the given scenario: individual assignment
Assignment Details:
The context for this assignment (Part 1 and Part 2) is a ’Beer Bottles Game Development’ for
calculating and displaying a LOSER. This assignment will test a student’s knowledge of and
skills in writing application software for a task, understanding the business rules of a
particular problem, coding these in a computer program, developing a graphical user
interface.
For this assignment, students will use the Java programming language and development will
be on the NetBeans IDE platform.
This assignment consists of 2 stages,
• Part 1: A simple console program (no GUI)
• Part 2: The same but wrapped in a GUI
Beer Bottles Game Development
Preamble:
1. In this game, there are 21 Beer bottles and 2 players – You and Computer.
2. You and Computer would pick up the Beer bottles one by one.
3. At a time, any number of beer bottles can be picked up between 1 and 4 (inclusive)
4. The one, who will have to pick up the last bottle, is the loser and will have to pay the
bill.
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 2
Design and implement a game, making use of Artificially Intelligent algorithm, so that if user
is playing first, then the Computer would pick up the bottles intelligently each time, and the
Computer would always Win. The Computer would never Lose.
Part 1: Design a Java application, which would display below message at the start of the
game.
There are 21 beer bottles...
Computer and yourself, there are 2 players
At a time, each one can pick up any number of bottles
between 1 and 4 (inclusive)
Will you like to play first?
If the User types ‘Yes’ and presses ‘Enter’ key, the next lines of output would be
Will you like to play first?
Yes
How many you would like to pick up?
If you pick up 3 bottles initially and press ‘Enter’ to observe how many the Computer picks
now, then as per your intelligent algorithm, the Computer needs to pick up any number of
bottles between 1 and 4 (inclusive), so that at the end, the Computer would WIN. The next
set of output would be.
How many you would like to pick up?
3
Computer has picked 2
The bottles remaining are: 16
How many you would like to pick up?
The User must be able to continue the game with Computer, and at every step the
remaining bottles need to be displayed appropriately. The number of remaining bottles
would get decreased at each step.
How many you would like to pick up?
2
Computer has picked 3
The bottles remaining are: 11
How many you would like to pick up?
3
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 3
Computer has picked 2
The bottles remaining are: 6
How many you would like to pick up?
4
Computer has picked 1
As per this artificially intelligent program, the Computer should always Win and Never Lose.
If User will have to pick up the last beer bottle, then User is Loser and would have to pay the
bill.
Computer has picked 1
The bottles remaining are: 1
You will have to pick up the last..you are loser
Please find below an entire program output from start to end to get an idea how algorithm
needs to work
Part 2: Design a UI using Java Swing components, which would look like below. [ need not
exactly, but similar].
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 4
If you pick up 3 bottles initially and click the button “Pick” to observe how many the
Computer picks now, then as per your intelligent algorithm, the Computer needs to pick up
any number of bottles between 1 and 4 (inclusive), so that at the end, the Computer would
WIN. The UI would be as below.
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 5
The User must be able to continue the game with Computer, and at every step the
remaining bottles need to be displayed appropriately. The number of remaining bottles
would get decreased at each step.
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 6
As per this artificially intelligent program, the Computer should always Win and Never Lose.
If User will have to pick up the last beer bottle, then User is Loser and would have to pay the
bill.
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 7
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 8
Marking Rubrics:
Criteria (Unsatisfacto
ry)
Fail
(Satisfactory)
Pass
(Effective)
Credit
(Excellent)
Distinction
(Exceptional)
High Distinction
%
Delivery No task
submitted
.
Complete
d less than
50% of the
requireme
nts. Not
submitted
in correct
format
Completed
between 50-
75% of the
requirements.
Submitted in
correct format
Completed
between 75-
85% of the
requirements.
Submitted in
correct format
Completed
between 85-95%
of the
requirements.
Submitted in
correct format
Completed
between 95-100%
of the
requirements.
Submitted in
correct format
3
Coding
Standards
No name,
date, or
assignment
title
included.
Poor use of
white
space
(indentatio
n, blank
lines).
Disorganize
d and
messy.
Poor use
of
variables
(many
global
variables,
ambiguou
s naming).
Missing
information on
name, date, or
assignment title
included.
White space
(indentation,
blank lines) used
properly.
Organized work
use of variables
(many global
variables,
ambiguous
naming).
Includes name,
date, and
assignment title.
White space
makes
program fairly
easy to read.
Organized work.
Good use of
variables (few
global
variables,
unambiguous
naming).
Includes name,
date, and
assignment title.
Good use of
white space.
Organized
work. Good
use of
variables (no
global
variables,
unambiguous
naming).
Includes name,
date, and
assignment title.
Excellent use of
white space.
Creatively organized
work.
Excellent use of
variables (no
global variables,
unambiguous
naming).
3
Documentation No
documentati
on included.
Basic
documentation
has been
completed
Basic
documentation
has been
completed
including
descriptions of
all variables.
Purpose is noted
for each
function.
Clearly
documented
including
descriptions of
all variables.
Specific purpose
is noted for each
function and
control
structure.
Clearly and
effectively
documented
including
descriptions of all
variables.
Specific purpose is
noted for each
function, control
structure, input
requirements, and
output results.
3
ICT104: Programming Assignment Compiled By: Divya Leekha T3 2019 Page | 9
Runtime Does not
execute
due to
errors. User
prompts
are
misleading
or nonexistent.
No testing
has been
completed.
Executes with
some warning
errors.
Executes
without errors.
User prompts
contain little
information,
poor design.
Some testing
has been
completed.
Executes
without errors.
User prompts
are
understandable,
minimum use of
symbols or spacing
in output.
Thorough testing
has been
completed
Executes without
errors excellent
user prompts, good
use of symbols,
spacing in output.
Thorough and
organized testing
has been
completed and
output from test
cases is included.
3
Efficiency A difficult
and
inefficient
solution.
A solution which
provides
some answer
but not
efficient.
A logical solution
that is easy to
follow but it is
not the most
efficient.
Solution is
efficient and
easy to follow
(i.e. no
confusing tricks).
Solution is efficient,
easy to
understand, and
maintain.
3
Demonstration Not given or
shown
irrelevant,
incomplete
or
ambiguous
functionality
and features
shown and
discussed.
Some of the
features and
functionality are
shown and
discussed but
some are
incomplete.
Most of the
features and
functionality are
shown and
discussed, are
mostly
complete.
All of the
features and
functionality
are shown and
discussed
systematically.
All of the features
and functionality
are shown and
discussed
systematically with
additional details.

Comments

Popular posts from this blog

Should pit bull terriers be banned in my community

 Discussion Forum: Counterarguments (Should pit bull terriers be banned in my community) You created a question about the topic for your W6 Rough Draft. For this discussion, you will give an answer to that question in the form of a thesis statement. "Dieting Makes People Fat" Main Post: Share your thesis statement with your classmates. Please note: As with last week’s discussion, nothing here is set in stone. Be open to changing everything about your topic, including your position and audience, as you research it and get feedback from your classmates. Topic + Position/Purpose + Supporting Points =Thesis Statement Example: Suppose the question you posed in the Week 5 discussion was something like, “Should pit bull terriers be banned in my community?” After doing some preliminary research, you have concluded that pit bulls, if raised properly, are no more dangerous than other breeds of dogs. Your thesis statement can be something like, “Pitbulls should not be banned

CYBER SECURITY and how it can impact today's healthcare system and the future

 Start by reading and following these instructions: Create your Assignment submission and be sure to cite your sources, use APA style as required, and check your spelling. Assignment: Recommendations Document Due Week 6 (100 pts) Main Assignment Recommendations Document The 1250 to 1500-word deliverable for this week is an initial draft of your recommendations. Note that this is a working document and may be modified based on insights gained in module eight and your professor's feedback. This document should contain the following elements: Summary of your problem or opportunity definition A list of possible recommendation alternatives. In this section, you are not yet at the point of suggesting the best set of recommendations but you are trying to be creative and explore all the different ways that the problem or opportunity might best be addressed. The end result here will be a list of alternatives among which you will choose your final recom

Do violent video games encourage players to become violent in real life?

 Write an outline for Speech 3, the persuasive belief speech, following the outline guidelines and formatting requirements (Do violent video games encourage players to become violent in real life?).  1000-1200 WORDS https://virtualspeech.com/blog/persuasive-speech-outline-structure-delivery Topics: https://blog.prepscholar.com/good-persuasive-speech-topics Do violent video games encourage players to become violent in real life? https://www.youtube.com/watch?v=YKKWOx43pIY WE HAVE DONE THIS ASSIGNMENT BEFORE, WE CAN ALSO DO IT FOR YOU GET SOLUTION FOR THIS ASSIGNMENT,  Get Impressive Scores in Your Class CLICK HERE TO MAKE YOUR ORDER   on Do violent video games encourage players to become violent in real life? Are You looking for Assignment and Homework Writing help?  We Provide High-Quality Academic Papers at Affordable Rates. No Plagiarism. TO BE RE-WRITTEN FROM THE SCRATCH