Hey I just started to program so I dont know how to fix it. Here is my code:
if(f_1 == 'x' && f_2 == 'x' && stupid < '80' )
{
f_3 == 'o';
player_turn = '1';
}
else if(f_2 == 'x' && f_3 == 'x' && stupid < '80')
{
f_1 == 'o';
player_turn = '1';
}
...
But i dont know why he dont give errors here:
if (eingabe == '1' && f_1 == '1' && player_turn == '1' )
{
f_1= 'x';
player_turn = '2';
cout << "Spieler Zwei ist am Zug" <<endl;
}
else if (eingabe == '2' && f_2 == '2' && player_turn == '1') {
f_2= 'x';
cout << "Spieler Zwei ist am Zug" <<endl;
player_turn = '2';
}
...
Isnt it the same Problem here. I googled about it but I dont understand where i did mistakes in "" and ''