Advertisement
mmayoub

RunPlayer, 10.07.2021

Jul 10th, 2021
1,363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. package prj10072021;
  2.  
  3. public class RunPlayer {
  4.  
  5.     public static void main(String[] args) {
  6.         Die d = new Die();
  7.         Player p = new Player("Ali");
  8.  
  9.         while (p.getPos() < 100) {
  10.             d.roll();
  11.             p.move(d.getNum());
  12.         }
  13.         System.out.println("Game is Over");
  14.  
  15.     }
  16.  
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement