Click here to Skip to main content
15,393,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I'm a beginner.
Can anyone give some sample how to code a game which has two players and they can draw 10 cards randomly?

What I have tried:

Sorry, I really don't know how to code it for my homework. Please help me.
Thank you. Just give some sample so that I could make it as a refference.
Posted
Updated 7-Jun-22 19:45pm
Comments
Rick York 8-Jun-22 2:59am
   
I showed you how in your previous question.

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
   
Comments
The Kings 8-Jun-22 2:48am
   
yes. I know so I just ask some kind of such situation sample to do it myself. I'm not asking you to code it to me...and this also not all of my question ask...
The Kings 8-Jun-22 3:01am
   
Besiedes, I think when you are the beginner you also not an expert right? So this post only ask someone to guide me only. If I want someone to do it for me, why I dont just post out the question is much easier? Between thanks for your reply.
Rick York 8-Jun-22 3:42am
   
I showed you how in your previous question.
OriginalGriff 8-Jun-22 4:20am
   
But you didn't give him the full code he could hand in, I suspect ... :sigh:
The Kings 8-Jun-22 6:26am
   
You are arguing with an art student about the programming. It will not make you look stronger; it will only show you are cowardly. All of my majors are not in programming. I admit that I am not very good at programming, but I am willing to spend time learning. You don't have to look down on other people. Anyway, his coding has already given me ideas on how to solve my problem. You should really reflect on your attitude of pride and prejudice. And thanks for your reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900