Baccarat (card game) C++

Joined
Dec 8, 2017
Messages
1
Reaction score
0
Hello Everyone,
I am currently beginning to learn to code in C++ and I am having a hard time setting up the code for this assignment. I am using the Wikipedia description of how the Casino card game Baccarat works but essentially I am needing it to generate a random number in a range and also I am needing to assign a "player" and "banker" with certain outputs if they receive certain random numbers which would result in picking a winner from the two. I'm not asking you to do the whole code, I am just asking if anyone knows how to generate random numbers in a range and how to assign the random event (one card being dealt) to the player/banker.
Also, since I am new to C++ is there any code that I need to put at the very beginning to help me generate the numbers and outcomes I need.

Anything will help. Thanks!

https://en.wikipedia.org/wiki/Baccarat_(card_game)#Punto_banco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Baccarat card games text based form 4
Tic Tac Toe Game 2
Help in hangman game 1
Python battle game help 2
C++, SFML, SDL2 - 2D game 0
Edit old flash game 0
Grid Stacking Game Issues 5
My Rock,Paper,Scissors Game 0

Members online

No members online now.

Forum statistics

Threads
473,930
Messages
2,570,072
Members
46,522
Latest member
Mad-Ram

Latest Threads

Top