Created
August 15, 2018 01:02
-
-
Save alex81632/3d23b304bff1259218923f559704832d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int Estados(){ | |
if(direito && esquerdo){ | |
estado_ini=0; | |
return 0; | |
} | |
if(direito){ | |
estado_ini=-1; | |
return -1; | |
} | |
if(esquerdo){ | |
estado_ini=1; | |
return 1; | |
} | |
if(estado_ini==-1){ | |
return -2; | |
} | |
return 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment