Permalink
Browse files

Added recursive function for finding best pairings

  • Loading branch information...
1 parent db4d85c commit 8ddded45c7c5738e1b6d8cea15b574bcaa99e263 @Khelldar Khelldar committed Nov 17, 2011
Showing with 280 additions and 142 deletions.
  1. +6 −0 application/controllers/mtgdc.php
  2. +274 −142 application/models/draft_model.php
@@ -81,6 +81,12 @@ public function newDraft() {
}
public function round() {
+ //check if GET -- if it is, start round 1 or recover
+ //if draft object in session is higher than round 1
+
+ //check if POST -- if it is, then incremement round
+ //and do matchmaking
+
session_start();
//TODO - check for valid session / data, handle appropriately.
$draft = $_SESSION['draft'];
Oops, something went wrong.

0 comments on commit 8ddded4

Please sign in to comment.