From bc8734ba58ae6ed81c157e89d51db9f275af16a7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 2 Apr 2019 17:52:08 +0200 Subject: [PATCH] Need to pass props from Game to ComputerGame to BaseGame to Board... --- client/src/components/BaseGame.vue | 4 ++-- client/src/components/ComputerGame.vue | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index ceadcd3a..c898b2ff 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -37,11 +37,11 @@ export default { Board, //MoveList, }, - props: ["variant","analyze","players"], + // "vr": VariantRules object, describing the game state + rules + props: ["vr","variant","analyze","players"], data: function() { return { st: store.state, - vr: null, //VariantRules object, describing the game state + rules endgameMessage: "", orientation: "w", score: "*", //'*' means 'unfinished' diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index a15686fd..962960a4 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -1,7 +1,7 @@