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

hand sorting ok

parent d759d49f
...@@ -17,23 +17,25 @@ export default { ...@@ -17,23 +17,25 @@ export default {
}, },
data(){ data(){
return{ return{
Hand: new Hand() Hand: null
} }
}, },
mounted(){ mounted(){
this.Hand.draw(new TileModel('0')); this.Hand= new Hand();
/*this.Hand.draw(new TileModel('11')); 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(11));
this.Hand.draw(new TileModel('16')); this.Hand.draw(new TileModel(14));
this.Hand.draw(new TileModel('7')); this.Hand.draw(new TileModel(16));
this.Hand.draw(new TileModel('4')); this.Hand.draw(new TileModel(7));
this.Hand.draw(new TileModel('5')); this.Hand.draw(new TileModel(4));
this.Hand.draw(new TileModel('20')); this.Hand.draw(new TileModel(5));
this.Hand.draw(new TileModel('21')); this.Hand.draw(new TileModel(20));
this.Hand.draw(new TileModel('22')); this.Hand.draw(new TileModel(21));
this.Hand.draw(new TileModel('6')); this.Hand.draw(new TileModel(22));
this.Hand.draw(new TileModel('8'));*/ this.Hand.draw(new TileModel(6));
this.Hand.draw(new TileModel(0));
this.Hand.sort();
}, },
updated(){ 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