Commit 9acb5d44 authored by quentin.vrel's avatar quentin.vrel

hand sorting ok

parent d759d49f
......@@ -17,23 +17,25 @@ export default {
},
data(){
return{
Hand: new Hand()
Hand: null
}
},
mounted(){
this.Hand.draw(new TileModel('0'));
/*this.Hand.draw(new TileModel('11'));
this.Hand.draw(new TileModel('11'));
this.Hand.draw(new TileModel('14'));
this.Hand.draw(new TileModel('16'));
this.Hand.draw(new TileModel('7'));
this.Hand.draw(new TileModel('4'));
this.Hand.draw(new TileModel('5'));
this.Hand.draw(new TileModel('20'));
this.Hand.draw(new TileModel('21'));
this.Hand.draw(new TileModel('22'));
this.Hand.draw(new TileModel('6'));
this.Hand.draw(new TileModel('8'));*/
this.Hand= new Hand();
this.Hand.draw(new TileModel(8));
this.Hand.draw(new TileModel(11));
this.Hand.draw(new TileModel(11));
this.Hand.draw(new TileModel(14));
this.Hand.draw(new TileModel(16));
this.Hand.draw(new TileModel(7));
this.Hand.draw(new TileModel(4));
this.Hand.draw(new TileModel(5));
this.Hand.draw(new TileModel(20));
this.Hand.draw(new TileModel(21));
this.Hand.draw(new TileModel(22));
this.Hand.draw(new TileModel(6));
this.Hand.draw(new TileModel(0));
this.Hand.sort();
},
updated(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment