Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jogo_forca;
- public class Logica {
- public static void main(String[] args) {
- Interface iu = new Interface();
- do {
- iu.exibeMenu1();
- if (iu.getOp1() == 1) {
- do {
- iu.exibeMenu2();
- if (iu.getOp2() == 1 || iu.getOp2() == 2) {
- Modelo fun = new Modelo();
- fun.gerar(iu.getOp2() - 1);
- iu.limpaTela();
- fun.geraTraco();
- fun.calcTamanho();
- fun.geraDica();
- while (fun.getFalta() > 0) {
- iu.limpaTela();
- iu.exibeBoneco(fun.getErros());
- iu.exibeDicas(fun.getTamanhof(), fun.getDica());
- iu.exibeEspacos(fun.getPalavra());
- iu.exibeLet(fun.getLet_errada());
- if(fun.isRep()==true){
- iu.exibeRep();
- }
- iu.recebeLetra();
- fun.procLetra(iu.getLetra());
- fun.verifica();
- }
- iu.exibeResultado(fun.isPla(), fun.getRes());
- iu.setOp2(0);
- }
- } while (iu.getOp2() == 1 || iu.getOp2() == 2);
- }
- } while (iu.getOp1() == 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment