Programação java


!Mateus!

Recommended Posts

alguem intende muito bem sobre isso? tenho que fazer um trabalho mais não consigo pelo menos fazer o robo andar pelo mundo inteiro.

 

so pode ser usado: while, if e variaveis..

 

aqui são os comandos : http://www.inf.furb.br/poo/furbot/files/Apostila_FURBOT.pdf

é usado o net beans..

 

image do mundo:

 

http://imageshack.us/photo/my-images/854/trabais.png/

 

Link to comment
Share on other sites

pode perguntar de tudo pra mim, c, progress, vb.net, pascal, mysql, oq quiser menos de java...nao gosto!

HAEUAHUEHUHUEAUHAEUHEHAUEHU

 

mas vai uma dica, java vc tem que se preocupar mais em saber com que a linguagem ja pode te dar pronto, do que programar...

Link to comment
Share on other sites

por enquanto ta assim, 

 

 

boolean terminou = false;
    int celulaVazia = 0;
 
   while(terminou != true){
       while(!ehFim(ACIMA)){
            andarAcima();
       if (ehVazio(ESQUERDA)){
         celulaVazia ++;
         
   }
      } 
        while (celulaVazia > getY()){
             andarAbaixo();
             celulaVazia--;
       }
         if(!ehVazio(ESQUERDA)){
             andarAbaixo();
             andarAbaixo();
         }
       andarEsquerda();
       andarEsquerda();
        while(!ehFim(ABAIXO)){
            andarAbaixo();
          }
        if(ehFim(ESQUERDA)){
         terminou = true;
        }
      }
    while(!ehFim(ACIMA)){
        andarAcima();
    }
  }
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...