Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package prj10072021;
- public class RunPlayer {
- public static void main(String[] args) {
- Die d = new Die();
- Player p = new Player("Ali");
- while (p.getPos() < 100) {
- d.roll();
- p.move(d.getNum());
- }
- System.out.println("Game is Over");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement