diff --git a/BeARouter/BeARouter.csproj b/BeARouter/BeARouter.csproj
index dcefa8b..44f3fcb 100644
--- a/BeARouter/BeARouter.csproj
+++ b/BeARouter/BeARouter.csproj
@@ -6,7 +6,7 @@
true
c_router_blue_BoB_icon.ico
Philipp Albrecht
- 1.0
+ 1.1
https://github.com/muqiuq/BeASwitch
c_router_blue.png
diff --git a/BeARouter/GameEngine.cs b/BeARouter/GameEngine.cs
index 47da85f..a686869 100644
--- a/BeARouter/GameEngine.cs
+++ b/BeARouter/GameEngine.cs
@@ -249,15 +249,24 @@ public void CheckSolution()
});
LastAttemptCorrect = false;
+ var AllCorrect = true;
+ var theOneIsCorrect = false;
foreach (var routerPort in Ports)
{
if (routerPort.IsChecked && routerPort.IsMarked)
{
- NumberOfCorrectAttempts++;
- LastAttemptCorrect = true;
+ theOneIsCorrect = true;
+ }
+ if (routerPort.IsChecked && !routerPort.IsMarked)
+ {
+ AllCorrect = false;
}
}
+ if(AllCorrect && theOneIsCorrect)
+ {
+ NumberOfCorrectAttempts++;
+ }
NumberOfAttempts++;
}