Commit 9d4ad192 authored by Zohten's avatar Zohten

more methods

parent f163ad41
import Tile from '@/model/Tile.js'
export default class Hand {
constructor() {
this.tiles_left = [];
export default class Hand{
constructor(initial_draw) {
this.tiles_left = initial_draw;
this.claimed =[];
}
discard(pos){
var discarded_tile = this.tiles_left.splice(pos, 1);
return discarded_tile;
}
draw(tile){
this.tiles_left.push(tile);
}
}
\ 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