Find Jobs
Hire Freelancers

Beginning Poker Program with Random Number Generator

$30-5000 USD

Ακυρώθηκε
Αναρτήθηκε περίπου 21 χρόνια πριν

$30-5000 USD

Πληρωμή κατά την παράδοση
1. Gather data on common poker hands, dealing 5 cards to create 10 hands in each deck and dealing 100 decks of cards to accumulate data. Initialize random number generator with a seed generated by a six-digit number (ex: 121280). Print out seed number used. 2. Use rand to generate a deck of cards by getting a random integer and saving it in deck[0][0] through deck[51][0]. At same time save an integer value in deck [0][1] through deck [51][1] using the counter value %13 (where the counter starts at 0 and stops after 51). This ensures that there are 52 cards with 4 zeroes, 4 ones, 4 twos, ..., 4 twelves contained in the second column of the deck matrix. 3. Use a sort function to shuffle or reorder each deck before dealing out the 10 hands. Pass matrix to sort function and reorder rows based on the integers in the first column. 4. Count number of hands that have following characteristic and print out how many of the 1000 hands had this characteristic: A hand with a consecutive run of 5 cards. ## Deliverables 1) Source code in C that works and accomplishes task. ## Platform Just in C code (not C++)
Ταυτότητα εργασίας: 2930884

Σχετικά με την εργασία

Απομακρυσμένη Εργασία
Ενεργός/ή 15 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν

Σχετικά με τον πελάτη

Σημαία της
0,0
0
Μέλος από Μαΐ 1, 2003

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.