From ac6dee77bc23aeca1734f34112527f663727f08b Mon Sep 17 00:00:00 2001 From: Mizanali Panjwani Date: Wed, 17 Feb 2021 05:42:40 +0530 Subject: [PATCH] Test commit --- src/components/Game.js | 63 +++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/src/components/Game.js b/src/components/Game.js index 547c8ae..c79c4dd 100644 --- a/src/components/Game.js +++ b/src/components/Game.js @@ -6,37 +6,38 @@ import './Game.css' const Game = (props) => { const player1active = props.turn === 'Player 1' - return ( - props.gameOver ?

GAME FORFEITED

{props.winner !== '' && <>

GAME OVER

{props.winner} wins!

}Home
: -
-

Turn: {props.turn}

-
- {props.player1Deck.map((item) => ( - props.onCardPlayed(item)} - className='card'> - {item} - - ))} -
-
-
-

Current Card: {props.playedCardsPile[props.playedCardsPile.length-1]}

- -
-
-
- {props.player2Deck.map((item) => ( - props.onCardPlayed(item)} - className='card'> - {item} - - ))} -
- Home -
- ) + // return ( + // props.gameOver ?

GAME FORFEITED

{props.winner !== '' && <>

GAME OVER

{props.winner} wins!

}Home
: + //
+ //

Turn: {props.turn}

+ //
+ // {props.player1Deck.map((item) => ( + // props.onCardPlayed(item)} + // className='card'> + // {item} + // + // ))} + //
+ //
+ //
+ //

Current Card: {props.playedCardsPile[props.playedCardsPile.length-1]}

+ // + //
+ //
+ //
+ // {props.player2Deck.map((item) => ( + // props.onCardPlayed(item)} + // className='card'> + // {item} + // + // ))} + //
+ // Home + //
+ // ) + return null } const mapStateToProps = (state) => {