8 Revize 19cec121f3 ... 3abf9935e9

Autor SHA1 Zpráva Datum
  lairaalmas 3abf9935e9 Merge branch 'develop' of ssh://200.144.254.107:2245/LInE/Ifractions-web into feature/new-game-scale-one před 5 měsíci
  lairaalmas 06aff0ebbe doc: update readme před 5 měsíci
  laira 978360525e Merge branch 'release-3.1.0' of LInE/Ifractions-web into master před 5 měsíci
  laira ae1917f9af Merge branch 'fix/c1-mixed-operation-feedback' of LInE/Ifractions-web into develop před 5 měsíci
  lairaalmas 59917e9be6 fix(c1-mixed): operation feedback equality sign před 5 měsíci
  laira a7d03fc947 Merge branch 'fix/select-initial-pos' of LInE/Ifractions-web into develop před 5 měsíci
  lairaalmas 80f3ce5570 fix: restart c1 mixed level if fraction equals 0 před 5 měsíci
  laira f777dcb388 Merge branch 'develop' of LInE/Ifractions-web into master před 7 měsíci
2 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. 1 1
      README.md
  2. 5 3
      js/games/circleOne.js

+ 1 - 1
README.md

@@ -46,7 +46,7 @@ Follow the description below based on in which platform you want to run iFractio
 
 ## Releases:
 
-### [v3.0.0](http://200.144.254.107/git/LInE/Ifractions-web/src/release-3.0.0) (stable)
+### [v3.1.0](http://200.144.254.107/git/LInE/Ifractions-web/src/release-3.1.0) (stable)
 
 * Bug fixes 
 

+ 5 - 3
js/games/circleOne.js

@@ -500,7 +500,7 @@ const circleOne = {
         self.circles.list[0].info.distance * self.circles.list[0].info.direc;
 
       let isBeforeMin = (isAfterMax = false);
-      let finalPosition = self.control.correctX;
+      let finalPosition = self.control.correctX.toFixed(1);
       // Restart if
       // In Game mode 'a' and 'b' : Kite position is out of bounds
       if (gameOperation === 'minus') {
@@ -508,7 +508,7 @@ const circleOne = {
         isAfterMax =
           finalPosition < validPath.x0 - 5 * validPath.distanceBetweenPoints;
       } else {
-        isBeforeMin = finalPosition < validPath.x0;
+        isBeforeMin = finalPosition <= validPath.x0;
         isAfterMax =
           finalPosition > validPath.x0 + 5 * validPath.distanceBetweenPoints;
       }
@@ -684,7 +684,9 @@ const circleOne = {
           nominators[i] = n + 0;
           denominators[i] = m + 0;
           values[i] = nm;
-          valueReal += nm;
+          if (gameOperation === 'mixed')
+            valueReal = temp < 0 ? valueReal - nm : valueReal + nm;
+          else valueReal += nm;
         }
 
         for (let i = 0; i < blocks; i++) {