Could someone tell me how I could handle this code object oriented wise.
<p>Although I know the basics of OOP, I just dont know how to make this normal php code act like OOP. What I wrote down is a rock paper scissor kinda game. Does someone please want to sacrifice some time to help me, I really want to get better at it. I would be grateful.         </p>

<pre><code>&lt;?php

    if(isset($_POST['submit']))
    {

        $array = array('water', 'wood' 'fire');
        $enemy_guess = array_rand(1,3);
        $player_guess = $_POST['picked_skill'];

            switch ($player_guess){

            case 'water':

                if($enemy_guess == 'fire'){
                        echo "you won";
                    }
                }else
                    {
                        echo "you lost";
                    }
            break;

            case 'wood':

                if($enemy_guess == 'water'){
                        echo "you won";
                }
                }else
                    {
                        echo "you lost";
                    }
            break;

            case 'fire':

                if($enemy_guess == 'wood'){
                        echo "you won";
                }
                }else
                    {
                        echo "you lost";
                    }
            break;
        }

    }

    ?&gt;
</code></pre>
