Ajoute les commentaires et la documentation RDoc
This commit is contained in:
1 parent
cbc8b5c7c5
commit
b0fd3c100c
12 files changed
+20
-11
No files matched your search
@@ -10,6 +10,11 @@ class TerminalUI
|
||||
print "Choose a card: "
|
||||
choice = gets.chomp.to_i
|
||||
|
||||
until choice.between?(1, player.hand.length)
|
||||
print "Invalid choice. Choose a card: "
|
||||
choice = gets.chomp.to_i
|
||||
end
|
||||
|
||||
player.hand[choice - 1]
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user