enaon έγραψε: 23 Μάιος 2024, 23:16
micmic έγραψε: 23 Μάιος 2024, 23:12
Δοκίμασέ το για λίγο, είναι πολύ απλοί οι κανόνες. Θα τους είχες γράψει 3 φορές μόνο στον χρόνο που έκανες να απαντήσεις εδώ.
Αν βγάλεις άκρη πες μου
σιγα που ειναι το ιδιο, πολυ ευκολο και ξεκουραστο να σου λεω που εχεις κανει μαλακια, να μην κανω εγω ειναι κουραστικό.
Έλα, γραψτα καλά να δώ οτι εχεις δίκιο.
Ορίστε, αλλά δεν έχει νόημα.
1. Take this standard 52-card deck: Q,10,5,4,9,Q,3,3,9,6,J,5,A,8,J,3,4,4,A,K,8,6,10,2,K,Q,K,2,9,5,2,A,2,10,10,J,7,J,8,6,K,9,7,6,5,7,4,A,Q,3,7,8
2. Start counting from A to K like this: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K
3. On your every count, draw a card from the deck and place it on a temporary pile, face up.
4. If the card drawn matches your count, remove it from the temporary pile and place it on another pile (the "counting pile"). Then, put the temporary pile back at the bottom of the deck, face down, and continue the game by starting to count from A to K again.
5. If you finish counting to K withouth finding any match, discard all the cards in the temporary pile and start all over again with the remaining deck.
6. If the deck runs out of cards without finding any match, discard all the cards in the temporary pile.
7. Continue until there are no more cards in the deck.
8. Sum up the cards in the counting pile. The Ace counts for 1, the face cards (J, Q, K) count for 10, and all other cards count as their face value.
9. Print the total sum.