2 Commits 007e242391 ... b5ab04ffa8

Author SHA1 Message Date
  Dim Dim b5ab04ffa8 Merge branch 'master' of http://git.onarbooks.com/LosPoulos/mafalda-web 6 years ago
  Dim Dim 69507a86ea gamemachine runMatch 6 years ago
2 changed files with 234 additions and 227 deletions
  1. 227 227
      package-lock.json
  2. 7 0
      src/Game/game/machine/GameMachine.js

File diff suppressed because it is too large
+ 227 - 227
package-lock.json


+ 7 - 0
src/Game/game/machine/GameMachine.js

@@ -114,6 +114,13 @@ class GameMachine {
     ownerOf(x) {
     ownerOf(x) {
         return this.state.board.owners[x];
         return this.state.board.owners[x];
     }
     }
+
+    runMatch(stack) {
+        for (let i = 0; i < 9; i++) {
+            this.runMove(stack[i]);
+        }
+        return this.getWinner();
+    }
 }
 }
 
 
 class Board {
 class Board {

Some files were not shown because too many files changed in this diff