Handle TileTake messages
This commit is contained in:
@@ -49,6 +49,10 @@ impl Hand {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn push(&mut self, tile: Tile) {
|
||||
self.tiles.push(tile);
|
||||
}
|
||||
|
||||
pub fn remove(&mut self, idx: usize) -> Option<Tile> {
|
||||
if idx < self.tiles.len() {
|
||||
Some(self.tiles.remove(idx))
|
||||
|
Reference in New Issue
Block a user