Commit a0e71531 authored by Zohten's avatar Zohten

modif id

parent 6be48013
......@@ -23,7 +23,33 @@ export default class Hand{
sort(){
this.tiles_left.sort(function (a, b) {
return a.id - b.id;
return a.id_tuile - b.id_tuile;
});
}
/**
* Check if 3 tiles of the same family consecutively (winds and dragons excluded)
*/
checkChow(){
}
/**
* Check if 3 tiles are the same
*/
checkPung(){
pungArray=[];
const tile_ids = this.tiles_left.map(tile => tile.id_tuile);
ids_set = new Set(tile_ids);
ids_set.forEach(tile => {
})
}
/**
* Check if 4 tiles are the same
*/
checkKong(){
}
}
\ No newline at end of file
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