Java Mini Project Report
Java Mini Project Report
Submitted by
SHRIDHAR PATIL (36)
PRAJWAL SARNOBAT(22)
PRAVIN PATIL(16)
Under Guidance of
Prof. Pranoti Tamgave mam.
1
DR. J.J. MAGDUM COLLEGE OF
ENGINEERING,JAYSINGPUR
CERTIFICATE
SHRIDHAR PATIL
PRAJWAL SARNOBAT
PRAVIN PATIL
2
ACKNOWLEDGEMENT
3
INTRODUCTION
Dice game are very much popular in the world and the board
games of dice are also very much popular. So here we created a
simple Dice Game where you and Computer will have the battle
against you. In this program there is no need to put any input
just run every time and get output.
4
SOURCE CODE
import java.util.Random;
5
public static void one(){
System.out.print("---------\n| |\n| * |\n| |\
n---------");
}
System.out.println("you");
switch(you){
case 1: one(); break;
case 2: two(); break;
case 3: three(); break;
case 4: four(); break;
case 5: five(); break;
case 6: six(); break;
}
System.out.println("\n");
System.out.println("computer");
switch(computer){
case 1: one(); break;
case 2: two(); break;
case 3: three(); break;
case 4: four(); break;
case 5: five(); break;
case 6: six(); break;
}
6
if(you>computer){
System.out.println("\nLucky! you won. \ndon't forget
like :)");
}
if(computer>you){
System.out.println("\nYou lost :( \ntap run button till
you win :)");
}
if(you==computer){
System.out.println("\nDraw! click run button again");
}
}
}
7
OUTPUT
8
FUTURE SCOPE
CONCLUSION
9
10
11