diff --git b/a.out a/a.out new file mode 100755 index 0000000..f001a84 Binary files /dev/null and a/a.out differ diff --git b/torosvacas.cpp a/torosvacas.cpp new file mode 100644 index 0000000..25d2167 --- /dev/null +++ a/torosvacas.cpp @@ -0,0 +1,163 @@ +#include +#define N 4 +#define INTENTOS 12 + +void separar_numeros(int vector[N], int numero); +int aleatorio(int x, int y); +bool tiene_cuatro_digitos(int n); + +using namespace std; + + + +int main(){ + + srand(time(NULL)); + + int numero_pensado[N]; + int numero_input[N]; + int input; + + bool error = false; + + for(int i=0; i> input; + if(!tiene_cuatro_digitos(input)){ + cout << "Jugada Inválida - Número Inválido\n"; + error = true; + //i--; + continue; + }else{ + error = false; + + + separar_numeros(numero_input, input); + + + for (int j = 0; j < N; j++) + { + for(int k=j+1; k