T3 2019: ICT104 Program Design Beer Bottle Game Development

Verified

Added on  2022/08/21

|6
|339
|42
Project
AI Summary
This assignment involves developing a Java-based beer bottle game. The project requires creating both a console application and a GUI application using NetBeans IDE. The game involves two players, where one is the user and the other is the computer. The user and the computer pick numbers from 1 to 4, and the game continues until the remaining bottles are 1. The assignment covers object-oriented programming principles, graphical user interface design, and the use of Java programming language. The student's solution provides the game's algorithm, implementation details, and output, including the graphical representation of the game. The assessment tests the student's ability to code, understand business rules, and develop a graphical user interface.
Document Page
Running head: BEER BOTTLE GAME DEVELOPMENT
Beer Bottle Game Development
Name of the Author
Name of the University
Author Note
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
1BEER BOTTLE GAME DEVELOPMENT
Game Overview:
Introduction to the game:
Game application is gui as well as console programming. There are 21 bottles. Game application
is about two players where one is user and another is computer when the game will start, there is
possibility getting choice for who will play firs based on the choice game will start if yes then
user will pick first number from 1 to 4. Then computer will pick the number from 1 to 4.This
process is going till at the end. If user is last pick the last then user will lose otherwise computer
will win.
Document Page
2BEER BOTTLE GAME DEVELOPMENT
Algorithm of the program:
step 1:start
step 2:there are two player where computer and user.
step 3: there are total 21 bottles and choice.
step 4:computer can pick from 1 to 4
step 5:user can pick from 1 to 4
step 6:player will get message will you like to play first.
step 7: if choice==yes
step 8:while total >1
step 9: user will pick the number.
step 10:compute remainingcount=total-(usercount+computerCount);
step 11:repeat step 8 until remainingcount is -1
step 12:end while loop
step 13:if remainingcount is 1 then
step 14: computer will win.
step 15: else user will win.
Document Page
3BEER BOTTLE GAME DEVELOPMENT
step 16: End
Output:
Here is the output of the GUI application where 21 bottle images are shown.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
4BEER BOTTLE GAME DEVELOPMENT
If user is pick any number for the artificial intelligent algorithm computer automatically
pick any number from 1-4.So here when user is pick 4 computer automatically pick 3 for
that now remaining bottles are 14 out of 21 and 7 bottles image are deleted.
Document Page
5BEER BOTTLE GAME DEVELOPMENT
chevron_up_icon
1 out of 6
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]