I'm working on Scrabble for my CS project. I need help implementing the letters in my board via ginput. Can someone tell me how to input the alphabet in a vector and then define a condition that will generate 7 random letters for the player?

letters=[A:Z]; 'what to do after this?'

1 commentaire

Can someone help me with the ginput? Or possibly upload a Scrabble file on FileCentral??

Connectez-vous pour commenter.

 Réponse acceptée

letters=['A':'Z'];
ind = randperm(numel(letters), 7);
draw7 = letters(ind)

2 commentaires

Thank you! Can you also tell me how to use ginput in such a way that when I select one of the letters displayed on the side of my board, it will display on the board at the exact point where I click on the board? Basically, I need help with the two mouse inputs. The selecting-the-letter input and the displaying-on-board input.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Exploration dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by