diff --git a/cards.class.php b/cards.class.php new file mode 100644 index 0000000..8870ca2 --- /dev/null +++ b/cards.class.php @@ -0,0 +1,36 @@ +cards=array(); + } + function card_add($card) + { + array_push($this->cards,$card); + } + function deal($number_to_deal) + { + $this->number_in_deck=count($this->cards); + + } + function card_remove($position) + { + unset($this->cards[$position]); + } + } +class card + { + var $suit; + var $pip; + + function __construct($suit,$pip) + { + $this->suit=$suit; + $this->pip=$pip; + } + } +?> \ No newline at end of file diff --git a/game_controller.php b/game_controller.php new file mode 100644 index 0000000..95edde4 --- /dev/null +++ b/game_controller.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..e69de29