PatamProject / Patam-BookScrabble

1 stars 0 forks source link

changes to rack, game and tile #25

Closed mayageva11 closed 1 year ago

mayageva11 commented 1 year ago

rack- added local variable -size tile- added a method isEmpty for the tile bag. game:

  1. added private volatile boolean gameEnded = false; 2.public void endGame()- using variable gameEnded to stop the game . 3.public void leaveGame(Player p)- methos that remove a player from the game (from players array). 4.public Player getWinner()- the winner is the player with the highest score. 5.public void checkWord(Word w)- check if the word is correct by the dictionary- didn't finish!