logo

GAME Dev using GUI application

   

Added on  2022-08-25

5 Pages545 Words18 Views
Running head: GAME DEV USING GUI APPLICATION
GAME Dev using GUI application
Name of the Author
Name of the University
Author Note

GAME DEV USING GUI APPLICATION
1
Create Java GUI application :
Introduction to the game:
The game application is in graphical user interface (GUI) based using java switch
components. There are 21 beer bottles is stored and the game is between two players. The
game application is about two players where one is user and another is computer. When
the game will start, a page is open wherein the above box a message is shown where
some description of the game is written. There is a possibility of getting a choice for who
will play first. Based on the choice game will start. If yes then user will pick a number
from 1 to 4. Then computer will pick the number from 1 to 4.This process is going till at
the end. Every time after user and computer will pick the number 1-4 the bottle will
decrease and in graphical user interface (GUI) page bottle will be deleted automatically.
If user is last pick then user will be the loser. Otherwise, computer will win. This is the
whole game process.
Algorithm of the program:
Step 1: Create a java class GameGuipage.java.
Step2: Declare a variable for accept value from player and computer.
Step 3: Declare java GUI component and Initiate all.
Step 4: Declare a constructor.
Step 5: Declare method initComponents ().
Step 6: In the method initComponents () we initialize all GUI components such as JFrame,
Jpanel, JLable, JTextArea, etc.

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
How to dispose of or recycle Beer bottle
|6
|339
|42