Commit 066c5589 authored by Zohten's avatar Zohten

minor change

parent 826d8f0b
......@@ -31,7 +31,6 @@ export default class Hand{
/**
* Check if 3 tiles of the same family consecutively (winds and dragons excluded)
*/
//
checkChow(){
this.sort();
let chowArray = [];
......@@ -41,7 +40,7 @@ export default class Hand{
let modulo = unique_tile_id%9;
if(unique_tile_id<25 && modulo<7){
if (tile_ids.includes(unique_tile_id+1) && tile_ids.includes(unique_tile_id+2)) {
chowArray.push(unique_tile_id);
chowArray.push([unique_tile_id, unique_tile_id+1, unique_tile_id+2]);
}
}
});
......
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