Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.4 kB
6
Indexable
Joker joker = new Joker("joker", 89);
        DoctorLecter doctorLecter = new DoctorLecter("doctorlecter", 1);
        Doctor doctor = new Doctor("doctor", 2);
        Detective detective = new Detective("detective", 3);
        GodFather godFather = new GodFather("father", 67);
        OrdinaryCitizen citizen = new OrdinaryCitizen("citizen", 6);
        Natasha natasha = new Natasha("natasha", 85);
        Sniper sniper = new Sniper("sniper", 34);

  players.add(doctorLecter);
        players.add(doctor);
        players.add(detective);
        players.add(ordinaryMafia);
        players.add(natasha);
        players.add(sniper);

  System.out.println(detective.action(doctorLecter)); // MAFIA
        System.out.println(gameState.getWinners()); // []

        System.out.println();

        gameState.nextDay();
        System.out.println(gameState.getDeadPlayersInLastRound()); // sniper
        System.out.println(gameState.getAlivePlayers().size()); // 7
        System.out.println(gameState.getSilentPlayerInLastRound()); // citizen
        natasha.vote(joker);
        sniper.vote(joker);
        doctorLecter.vote(joker);

        System.out.println();

        gameState.nextNight();
        System.out.println(gameState.getDeadPlayersInLastRound()); //joker
        System.out.println(gameState.getExecutedPlayer()); //joker
        System.out.println(gameState.getWinners()); //joker