Hello, is it possible to optimize this code?
PHP Code:
if(iRPS[iPlayer] == 1 && iRPS[iTarget] == 2)
{
//Action here
}
if(iRPS[iPlayer] == 1 && iRPS[iTarget] == 3)
{
//Action here
}
if(iRPS[iPlayer] == 2 && iRPS[iTarget] == 1)
{
//Action here
}
if(iRPS[iPlayer] == 3 && iRPS[iTarget] == 1)
{
//Action here
}
If yes, how could it be done
Thanks in advance
__________________