Commit 7de4ed67 authored by Anuththara18's avatar Anuththara18

Analysing factors bug fix - Divided Attention

parent 6bbb10b1
...@@ -131,39 +131,39 @@ public class DividedAttentionGame1 extends AppCompatActivity { ...@@ -131,39 +131,39 @@ public class DividedAttentionGame1 extends AppCompatActivity {
public void run() { public void run() {
if ( i < 40 ) { // 40 times if ( i < 40 ) { // 40 times
if ( i == 4 ) { if ( i == 5 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 9 ) { }else if ( i == 10 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 14 ) { }else if ( i == 15 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 19 ) { }else if ( i == 20 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 24 ) { }else if ( i == 25 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 29 ) { }else if ( i == 30 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 34 ) { }else if ( i == 35 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 39 ) { }else if ( i == 40 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
}else if ( i == 44 ) { }else if ( i == 45 ) {
checkIfMissed(); checkIfMissed();
missed = 0; missed = 0;
correctresponse = 0; correctresponse = 0;
...@@ -316,6 +316,12 @@ public class DividedAttentionGame1 extends AppCompatActivity { ...@@ -316,6 +316,12 @@ public class DividedAttentionGame1 extends AppCompatActivity {
} }
} }
else { else {
if ( i == 40) {
if (missed == 0 || missed == 2) {
sequence_of_responses.add("M");
Log.d("%%%%%%%%%%%%%%%%%%", String.valueOf(sequence_of_responses));
}
}
long gameEnd = System.currentTimeMillis(); long gameEnd = System.currentTimeMillis();
long seconds = (gameEnd - gameStart) / 1000; long seconds = (gameEnd - gameStart) / 1000;
if ( noOfCorrectResponses == 0 ) { if ( noOfCorrectResponses == 0 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment