tp3
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
$images = ["rock.png","paper.png","scissors.png"];
|
||||
$isPlaying = true;
|
||||
|
||||
$playerChoice = 0;
|
||||
$computerChoice = 1;
|
||||
|
||||
$message = "Win";
|
||||
$class = "Win";
|
||||
|
||||
$imagePlayer = $images[$playerChoice];
|
||||
$imageComputer = $images[$computerChoice];
|
||||
|
||||
include './views/header.php';
|
||||
if ($isPlaying){
|
||||
include './views/game.php';
|
||||
include './views/message.php';
|
||||
}
|
||||
include './views/footer.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user