Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println(ch1.getName()+ "'s CL:" + Dm1);
- System.out.println(" ");
- CL1=CL1 - y;
- Dm1=CL1;
- //player 1 attacks player 2 with random roll of dice times 4
- System.out.println("JOE Attack:");
- System.out.println( ch1.getName() + " Attacks " + ch2.getName1());
- System.out.println("Attacks:" + (x= A1 + dice.roll2()));
- System.out.println(ch2.getName1()+ "'s CL:" + Dm2);
- System.out.println(" ");
- CL2=CL2 - x;
- Dm2=CL2;
- }}
- ctr++;
- System.out.println("BATTLE" +"__" +ctr);
- }while(CL2 > 1 & CL1 >1);
- /////////////////////////////////////////////////////////////////////////
- int R = dice.roll1();
- if(R >2)
- {
- if(Dm1 < Mx1 || CL1 > 0)
- {
- Dm1 = CL1 + HL1;
- if(Dm1 > Mx1){
- Dm1 = CL1;
- System.out.println("Joe Heals_" + HL1);
- System.out.println("Joe's Health is_" + Dm1);
- }
- else
- {
- if(CL1 > 0)
- {
- System.out.println("Joe Heals" + HL1);
- System.out.println("Joe's Health is" + Dm1);
- }
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////
- int W = dice.roll1();
- if(W >2)
- {
- if(Dm2 < Mx2 || CL2 > 0)
- {
- Dm2 = CL2 + HL2;
- if(Dm2 > Mx2){
- Dm2 = CL2;
- System.out.println("Joe Heals_" + HL2);
- System.out.println("Joe's Health is_" + Dm2);
- }
- else
- {
- if(CL2 > 0)
- {
- System.out.println("Joe Heals" + HL2);
- System.out.println("Joe's Health is" + Dm2);
- }
- }
- }
- }
- ////////////////////////////////////////////////////////////////////////////
- if(CL1 == CL2)
- {
- System.out.println("____DRAW!?!?!?!?!_____");
- }
- if(CL1 > CL2 )
- {
- System.out.println("____JOE KICKED BUTT(wins)!!!!!_____");
- }
- if(CL2 > CL1 )
- {
- System.out.println("____BOB KICKED BUTT (wins)!!!!!_____");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement