- '200','202','220','222');
-
- private $planes = array(
- array('000','001','002','010','011','012','020','021','022'), // horiz 1
- array('100','101','102','110','111','112','120','121','122'), // 2
- array('200','201','202','210','211','212','220','221','222'), // 3
- array('000','010','020','100','110','120','200','210','220'), // vert left
- array('000','001','002','100','101','102','200','201','202'), // vert top
- array('002','012','022','102','112','122','202','212','222'), // vert right
- array('020','021','022','120','121','122','220','221','222'), // vert bot
- array('010','011','012','110','111','112','210','211','212'), // left vertx
- array('001','011','021','101','111','221','201','211','221'), // top vertx
- array('000','001','002','110','111','112','220','221','222'), // diag top
- array('020','021','022','110','111','112','200','201','202'), // diag bot
- array('000','010','020','101','111','121','202','212','222'), // diag left
- array('002','012','022','101','111','121','200','210','220'), // diag right
- array('002','011','020','102','111','120','202','211','220'), // diag x
- array('000','011','022','100','111','122','200','211','222') // diag x
-
- );
-
-
- private $winner = array(
- array('000','001','002'), // board 0 winners - left corner across
- array('000','010','020'), // down
- array('000','011','022'), // diag
- array('001','011','021'), // middle-top down
- array('010','011','012'), // middle-left across
- array('002','011','020'), // right-top diag
- array('002','012','022'), // right-top down
- array('020','021','022'), // bottom-left across
- array('100','101','102'), // board 1 winners
- array('100','110','120'),
- array('100','111','122'),
- array('101','111','121'),
- array('110','111','112'),
- array('102','111','120'),
- array('102','112','122'),
- array('120','121','122'),
- array('200','201','202'), // board 2 winners
- array('200','210','220'),
- array('200','211','222'),
- array('201','211','221'),
- array('210','211','212'),
- array('202','211','220'),
- array('202','212','222'),
- array('220','221','222'),
- array('000','100','200'), // top-left corner 3d
- array('000','101','202'),
- array('000','110','220'),
- array('000','111','222'),
- array('001','101','201'), // top-middle 3d
- array('001','111','221'),
- array('002','102','202'), // top-right corner 3d
- array('002','101','200'),
- array('002','112','222'),
- array('002','111','220'),
- array('010','110','210'), // left-middle 3d
- array('010','111','212'),
- array('011','111','211'), // middle-middle 3d
- array('012','112','212'), // right-middle 3d
- array('012','111','210'),
- array('020','120','220'), // bottom-left corner 3d
- array('020','110','200'),
- array('020','121','222'),
- array('020','111','202'),
- array('021','121','221'), // bottom-middle 3d
- array('021','111','201'),
- array('022','122','222'), // bottom-right corner 3d
- array('022','121','220'),
- array('022','112','202'),
- array('022','111','200')
-
- );
+ '200','202','220','222'];
+
+ private $planes = [
+ ['000','001','002','010','011','012','020','021','022'], // horiz 1
+ ['100','101','102','110','111','112','120','121','122'], // 2
+ ['200','201','202','210','211','212','220','221','222'], // 3
+ ['000','010','020','100','110','120','200','210','220'], // vert left
+ ['000','001','002','100','101','102','200','201','202'], // vert top
+ ['002','012','022','102','112','122','202','212','222'], // vert right
+ ['020','021','022','120','121','122','220','221','222'], // vert bot
+ ['010','011','012','110','111','112','210','211','212'], // left vertx
+ ['001','011','021','101','111','221','201','211','221'], // top vertx
+ ['000','001','002','110','111','112','220','221','222'], // diag top
+ ['020','021','022','110','111','112','200','201','202'], // diag bot
+ ['000','010','020','101','111','121','202','212','222'], // diag left
+ ['002','012','022','101','111','121','200','210','220'], // diag right
+ ['002','011','020','102','111','120','202','211','220'], // diag x
+ ['000','011','022','100','111','122','200','211','222'] // diag x
+
+ ];
+
+
+ private $winner = [
+ ['000','001','002'], // board 0 winners - left corner across
+ ['000','010','020'], // down
+ ['000','011','022'], // diag
+ ['001','011','021'], // middle-top down
+ ['010','011','012'], // middle-left across
+ ['002','011','020'], // right-top diag
+ ['002','012','022'], // right-top down
+ ['020','021','022'], // bottom-left across
+ ['100','101','102'], // board 1 winners
+ ['100','110','120'],
+ ['100','111','122'],
+ ['101','111','121'],
+ ['110','111','112'],
+ ['102','111','120'],
+ ['102','112','122'],
+ ['120','121','122'],
+ ['200','201','202'], // board 2 winners
+ ['200','210','220'],
+ ['200','211','222'],
+ ['201','211','221'],
+ ['210','211','212'],
+ ['202','211','220'],
+ ['202','212','222'],
+ ['220','221','222'],
+ ['000','100','200'], // top-left corner 3d
+ ['000','101','202'],
+ ['000','110','220'],
+ ['000','111','222'],
+ ['001','101','201'], // top-middle 3d
+ ['001','111','221'],
+ ['002','102','202'], // top-right corner 3d
+ ['002','101','200'],
+ ['002','112','222'],
+ ['002','111','220'],
+ ['010','110','210'], // left-middle 3d
+ ['010','111','212'],
+ ['011','111','211'], // middle-middle 3d
+ ['012','112','212'], // right-middle 3d
+ ['012','111','210'],
+ ['020','120','220'], // bottom-left corner 3d
+ ['020','110','200'],
+ ['020','121','222'],
+ ['020','111','202'],
+ ['021','121','221'], // bottom-middle 3d
+ ['021','111','201'],
+ ['022','122','222'], // bottom-right corner 3d
+ ['022','121','220'],
+ ['022','112','202'],
+ ['022','111','200']
+
+ ];