projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
together17: add points constraint on the suit when auction is finished
[brisk.git]
/
web
/
briskin5
/
Obj
/
briskin5.phh
diff --git
a/web/briskin5/Obj/briskin5.phh
b/web/briskin5/Obj/briskin5.phh
index
d1bbbcc
..
d3066be
100644
(file)
--- a/
web/briskin5/Obj/briskin5.phh
+++ b/
web/briskin5/Obj/briskin5.phh
@@
-32,7
+32,9
@@
define('BIN5_PROXY_PATH', PROXY_PATH."/bin5");
require_once('rules.phh');
require_once('rules.phh');
-define('BIN5_TOURNAMENT_CURRENT', BIN5_TOURNAMENT_NO_DRAW);
+// FIXME: JUST FOR DEVELOP
+// define('BIN5_TOURNAMENT_CURRENT', BIN5_TOURNAMENT_NO_DRAW);
+define('BIN5_TOURNAMENT_CURRENT', BIN5_TOURNAMENT_TOGETHER17);
$mlang_bin5_bin5 = array(
// br, hr, b, /b, win, fri
$mlang_bin5_bin5 = array(
// br, hr, b, /b, win, fri
@@
-174,19
+176,19
@@
class Card {
} // end class Card
class Bin5_table extends Table {
} // end class Card
class Bin5_table extends Table {
- var $card; // il mazzo di carte
- var $mazzo; // chi e' di mazzo
- var $gstart;
- var $turn;
+ var $card;
// il mazzo di carte
+ var $mazzo;
// chi e' di mazzo
+ var $gstart;
// first player of the current game
+ var $turn;
// turn in the game (absolute, not modularized)
- var $asta_pla;
- var $asta_pla_n;
- var $asta_card;
- var $asta_pnt;
+ var $asta_pla;
// array(); TRUE: in auction, FALSE: out of the auction
+ var $asta_pla_n;
// number of players in auction
+ var $asta_card;
// current card for auction
+ var $asta_pnt;
// current point for auction
var $mult;
var $mult;
- var $points; // points array
- var $points_n; // number of row of points
+ var $points;
// points array
+ var $points_n;
// number of row of points
var $total;
var $asta_win; // the caller idx position at table
var $total;
var $asta_win; // the caller idx position at table
@@
-1720,6
+1722,7
@@
function show_table(&$bri, &$user, $sendstep, $is_transition, $is_again)
$table->asta_card);
}
else {
$table->asta_card);
}
else {
+ // FIXME - RULES to be able to abandon table
/* show auction */
if ($table_pos == ($table->gstart % BIN5_PLAYERS_N) &&
$table->asta_win == -1)
/* show auction */
if ($table_pos == ($table->gstart % BIN5_PLAYERS_N) &&
$table->asta_win == -1)