diff --git a/.cproject b/.cproject index 5325f46..135dc43 100644 --- a/.cproject +++ b/.cproject @@ -1,8 +1,8 @@ - - + + @@ -14,97 +14,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -112,9 +32,6 @@ - - - @@ -130,13 +47,8 @@ - - - - - - - - + + + diff --git a/Debug/src/2048.o b/Debug/src/2048.o index e599e60..86ec11e 100644 Binary files a/Debug/src/2048.o and b/Debug/src/2048.o differ diff --git a/Release/src/2048.o b/Release/src/2048.o index 575d209..f2a1202 100644 Binary files a/Release/src/2048.o and b/Release/src/2048.o differ diff --git a/src/2048 b/src/2048 new file mode 100755 index 0000000..0fb07a4 Binary files /dev/null and b/src/2048 differ diff --git a/src/2048.cpp b/src/2048.cpp index 4c84be2..42f1dbb 100644 --- a/src/2048.cpp +++ b/src/2048.cpp @@ -444,13 +444,14 @@ bool perdeu(){ } bool venceu(){ - int soma = ZERO; for(int i = ZERO; i< QUATRO;i++){ for(int j = ZERO; j< QUATRO;j++){ - soma += matriz[i][j]; + if(valorVitoria = matriz[i][j]){ + return true; + } } } - return (soma >= valorVitoria); + return false; }