Ajoute les commentaires et la documentation RDoc

This commit is contained in:
julien committed 2026-10-08 21:45:11 +02:00
1 parent cbc8b5c7c5
commit b0fd3c100c
12 files changed
+20 -11

No files matched your search

+5
View File
@@ -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