I want to set up a "bag" full of letters in the game, and give out random letters and delete them later. I have a few questions: Question No. 1 Right now I have made an infinitely long list that contains every letter that is in the bag, there should be an easier way to do this over the loop function.
a<-c("Joker","Joker", "A","A","A","A","A","A","A","A","A","B","B",..."W","W","X","Y","Y","Z")
Question No. 2 with the Sample function (a, 7) I can print 7 random letters from the list. So, now I just need to subtract these letters from the list a, but everything I was looking for seems to delete all the letters (so if I pulled out one βAβ, it will delete all βAβ from the first list).
Bonus question (you donβt need to answer it): The setup of the board (it should be a good printed schedule) is likely to be performed on the matrix. Where empty spaces can be marked with O, Double points DP, Double word value DW, etc. I already know that this is far from my understanding, but whether there will be a way to automatically calculate how much a person receives for breaking a word in a certain place.
source share