What exactly is wrong with my if statements?
<p>I've tried different ways of laying out my if statements, I even tried nested if statements. I get the same result. I'm not sure of any way to ask my question besides showing my code.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;conio.h&gt;
#include &lt;string&gt;

using namespace std;

int main()
{
char playerOne, playerTwo;

cout&lt;&lt;"ROCK PAPER SCISSORS!"&lt;&lt;endl;
cout&lt;&lt;"Enter P for Paper"&lt;&lt;endl;
cout&lt;&lt;"Enter R for Rock"&lt;&lt;endl;
cout&lt;&lt;"Enter S for Scissors"&lt;&lt;endl;

cout&lt;&lt;"Player One enter your choice: ";
cin&gt;&gt;playerOne;

cout&lt;&lt;"Player Two enter your choice: ";
cin&gt;&gt;playerTwo;

if ((playerOne = 'R') &amp;&amp; (playerTwo = 'R'))
    cout&lt;&lt;"Both players played same hand";
else if ((playerOne = 'R') &amp;&amp; (playerTwo = 'P'))
    cout&lt;&lt;"Player Two wins!";
else if ((playerOne = 'R') &amp;&amp; (playerTwo = 'S'))
    cout&lt;&lt;"Player One wins!";
else if ((playerOne = 'P') &amp;&amp; (playerTwo = 'R'))
    cout&lt;&lt;"Player One wins!";
else if ((playerOne = 'P') &amp;&amp; (playerTwo = 'P'))
    cout&lt;&lt;"Both players played same hand";
else if ((playerOne = 'P') &amp;&amp; (playerTwo = 'S'))
    cout&lt;&lt;"Player Two wins!";
else if ((playerOne = 'S') &amp;&amp; (playerTwo = 'R'))
    cout&lt;&lt;"Player Two wins!";
else if ((playerOne = 'S') &amp;&amp; (playerTwo = 'P'))
    cout&lt;&lt;"Player One wins!";
else if ((playerOne = 'S') &amp;&amp; (playerTwo = 'S'))
    cout&lt;&lt;"Both players played same hand";
else
    cout&lt;&lt;"Invalid inputs!";

getche();
return 0;
}
</code></pre>
