Hi working through the Rock Paper Scissorsx99 project but can’t get my code to pass one of the edge case tests. Basically this section ‘should return null if any move types or values are missing’ my code for the section is below. Without the code I pass all but this test case, but with the code inserted, I pass this one test but then fail the rest of them. I’ve seen the solution but don’t understand why my way doesnt work.
if (!playerOneMoveOneType || !playerOneMoveOneValue || !playerOneMoveTwoType || !playerOneMoveTwoValue
|| !playerOneMoveThreeType || !playerOneMoveThreeValue || !playerTwoMoveOneType || !playerTwoMoveOneValue
|| !playerTwoMoveTwoType || !playerTwoMoveThreeType || !playerTwoMoveThreeValue)
{return null;}