diff --git a/README.md b/README.md index aea5d5e..d60e189 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Online multiplayer card game. \ No newline at end of file +Two player online game of UNO. \ No newline at end of file diff --git a/client/public/index.html b/client/public/index.html index 5bcff27..acf9f75 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -7,7 +7,7 @@ -
Player 1
- {player1Deck.map((item, i) => ( +Player 2
+ {player2Deck.map((item, i) => ( onCardPlayedHandler(item)} - src={require(`../assets/cards-front/${item}.png`).default} + src={require(`../assets/card-back.png`).default} /> ))} + {turn==='Player 2' &&Player 2
- {player2Deck.map((item, i) => ( +Player 1
+ {player1Deck.map((item, i) => ( onCardPlayedHandler(item)} - src={require(`../assets/card-back.png`).default} + src={require(`../assets/cards-front/${item}.png`).default} /> ))} - {turn==='Player 2' &&