From 42c15e2160b24ad61c511149f50b31a52e4958fe Mon Sep 17 00:00:00 2001
From: Mikayla Dobson <93477693+innocuous-symmetry@users.noreply.github.com>
Date: Sat, 16 Apr 2022 14:09:15 -0500
Subject: [PATCH] key mapping
---
client/package-lock.json | 1 +
client/package.json | 1 +
client/src/components/Game/GameBoard.js | 9 +++++++--
client/src/components/GameConfigForms/LocalMultiForm.js | 5 ++++-
4 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/client/package-lock.json b/client/package-lock.json
index a8f47d0..713f4a8 100644
--- a/client/package-lock.json
+++ b/client/package-lock.json
@@ -15,6 +15,7 @@
"react-dom": "^18.0.0",
"react-router-dom": "^6.2.2",
"react-scripts": "5.0.0",
+ "uuid": "^8.3.2",
"web-vitals": "^2.1.4"
}
},
diff --git a/client/package.json b/client/package.json
index 59d524c..88c655f 100644
--- a/client/package.json
+++ b/client/package.json
@@ -10,6 +10,7 @@
"react-dom": "^18.0.0",
"react-router-dom": "^6.2.2",
"react-scripts": "5.0.0",
+ "uuid": "^8.3.2",
"web-vitals": "^2.1.4"
},
"scripts": {
diff --git a/client/src/components/Game/GameBoard.js b/client/src/components/Game/GameBoard.js
index 5103d0e..e42ace2 100644
--- a/client/src/components/Game/GameBoard.js
+++ b/client/src/components/Game/GameBoard.js
@@ -6,6 +6,8 @@ import { TierOneDeck } from '../../store/TierOneDeck';
import { TierTwoDeck } from '../../store/TierTwoDeck';
import { TierThreeDeck } from '../../store/TierThreeDeck';
+import {v4} from 'uuid';
+
export default function GameBoard() {
const [state, dispatch] = useContext(Context);
@@ -26,7 +28,7 @@ export default function GameBoard() {
iter++;
if (!AllDecks[tier-1][iter-1]) continue;
- newBoard.push(
{player}
)} +