User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » C++ Poker Page [1]  
Chellx06
Veteran
170 Posts
user info
edit post

Hey, I am trying to work on my final project for C++ and I have no idea where to really begin. Does anyone know anything about C++ or has ever done this project and can give me some ideas as to a good place to start?

Thanks!

4/19/2009 4:24:25 PM

darkone
(\/) (;,,,;) (\/)
11610 Posts
user info
edit post

wow... epic fail

4/19/2009 4:30:55 PM

cyrion
All American
27139 Posts
user info
edit post

here's a good start.

poker has cards. the hands can vary style to style, but 5 seems to be a popular number either in stud or texas holdem. depending on what cards you get, you can combine them into special sequences or pairs. some beat others.

your program should simulate this very interesting phenomenon.

4/19/2009 5:24:38 PM

Chellx06
Veteran
170 Posts
user info
edit post

ok jackass i know how the fuck to play poker. I don't however know how the fuck to program it. That's why I was asking for help.

4/19/2009 5:48:15 PM

scud
All American
10804 Posts
user info
edit post


std::vector<Card> deck;
std::random_shuffle( deck.begin(), deck.end() );

4/19/2009 5:53:35 PM

BigEgo
Not suspended
24374 Posts
user info
edit post

startprogram:trolling.aspx

4/19/2009 7:08:21 PM

rainman
Veteran
358 Posts
user info
edit post

Connect 4 would probably be an easier program to make.

4/19/2009 7:19:57 PM

qntmfred
retired
40724 Posts
user info
edit post

random_shuffle() is well established to use poor random number generation algorithms and has been exploited on commercial poker sites a number of times. i highly recommend using qntm_random_shuffle() instead

4/19/2009 7:27:40 PM

Big Business
Suspended
9099 Posts
user info
edit post

I would start by going to class

I'm Big Business and i approved this message.

4/19/2009 8:09:13 PM

qntmfred
retired
40724 Posts
user info
edit post

nah, i never went to class and i ended up just fine

4/19/2009 8:12:49 PM

umbrellaman
All American
10892 Posts
user info
edit post

Have you tried reading the program/assignment description? Surely there are some clues in there.

4/19/2009 8:36:24 PM

ryan627
Veteran
333 Posts
user info
edit post

ya I took this class a while ago and had the poker assignment.

Just read the description. I know there is a lot there but it's all you need.

Make sure to give yourself at least 12 hours for it.

4/19/2009 10:41:58 PM

sarijoul
All American
14208 Posts
user info
edit post

i made a casino program on a TI-81 that had poker, black jack and slots. of course it was a sort of single player poker where you get points for 2 pair or greater iirc. that was one of the earlier programs that i ever made.

4/20/2009 3:01:06 AM

eslifka
New Recruit
2 Posts
user info
edit post

"""
Hey, I am trying to work on my final project for C++ and I have no idea where to really begin. Does anyone know anything about C++ or has ever done this project and can give me some ideas as to a good place to start?
"""

Well, I might suggest emailing your TA, (being me ...) at the support email for the course, (being csc114-sup@wolfware.ncsu.edu).

[Edited on April 20, 2009 at 12:44 PM. Reason : quote didn't work]

4/20/2009 12:42:59 PM

OmarBadu
zidik
25071 Posts
user info
edit post

[ quote ] without the spaces [ / quote ] - there is a button for it as well - the piece of paper with a red arrow pointing right

4/20/2009 12:50:17 PM

StayPuff
All American
5154 Posts
user info
edit post

besides the quote thing not working....

that was a very nice first post...

bravo *golf clap*

4/20/2009 12:51:01 PM

Hurley
Suspended
7284 Posts
user info
edit post

TWW FOR THE TADDLY-TELL

4/20/2009 1:05:53 PM

msdulber
New Recruit
6 Posts
user info
edit post

Sigh, why are there always a small number of students who are trying to get over?

Clearly Chellx06 has not read the assignment very well, particularly the first paragraph about academic integrity. Since I don't know who you are (thankfully) why don't you read the assignment clearly, including the step by step guidelines I gave you, try to compile and run the sample program, then come to us with any questions you have.

It's a short road from asking for "help" on here to getting a buddy to give you code from a previous semester and just modifying it slightly. If I happen to get lucky and catch you at it though it will get ugly very quickly. I haven't been teaching on campus for a while but when I used to teach large sections, I filed quite a few academic integrity cases and have yet to lose one. So please take an honest shot at it and we'll be happy to help.

Sincerely,
Your favorite instructor

4/20/2009 2:55:56 PM

CalledToArms
All American
22025 Posts
user info
edit post

Quote :
"i made a casino program on a TI-81 that had poker, black jack and slots. of course it was a sort of single player poker where you get points for 2 pair or greater iirc. that was one of the earlier programs that i ever made."


haha fun stuff. I made an entire text based World Cup game on my TI-83 in HS that several people enjoyed. The sad thing is that it would probably take me 3x as long today to try and write a program like that as it did then - if I could even do it today (plus I don't have the time to burn now...like I did then sitting through some boring classes hah). It had pool play, and if you qualified it had matches against opponents in each of the following rounds and a bonus match against the "World All Stars" to beat the game if you won the world cup.

It was actually pretty fun. Not too technical but it had still graphics for fouls/cards, goals scored, main screen, etc. Actually allowed for Penalty Kicks, goal kicks, corner kicks and the defense of each as well.

Wish I could have actually made a moving graphics based one but that is/was way above me.

[Edited on April 20, 2009 at 3:39 PM. Reason : ]

4/20/2009 3:32:58 PM

frugal_qualm
All American
1398 Posts
user info
edit post

HAHAHAHA

This should be the new thread to refer people to when they pull this crap.

4/20/2009 3:52:35 PM

Chellx06
Veteran
170 Posts
user info
edit post

Ok, I honestly was just asking for opinions as to where to start because I was confused. I have read the assignment about four times, and I was just wondering about other peoples opinions as a good place to begin things. I do see how it can look as though I was trying to get someones code, which I was not, and would not ever do.

just wanted to clear that up.

and I have a great test average/homework/lab average because I have put a TON of effort into this class this semester, so I do watch the lectures, and I do take notes from the lessons posted and do everything I need to do for this class. This project however has just thrown me for a loop.

[Edited on April 20, 2009 at 4:24 PM. Reason : asd]

4/20/2009 4:18:54 PM

CalledToArms
All American
22025 Posts
user info
edit post

lol

4/20/2009 4:22:34 PM

umbrellaman
All American
10892 Posts
user info
edit post

^^That's some nice back-pedaling there, buddy.

Quote :
"Clearly Chellx06 has not read the assignment very well, particularly the first paragraph about academic integrity. Since I don't know who you are (thankfully) why don't you read the assignment clearly, including the step by step guidelines I gave you, try to compile and run the sample program, then come to us with any questions you have."


Haha oh snap! I never realized Dr. Dulberg had an account on here. I always think of Dr. Warren as being the only prof who's on here...

4/20/2009 4:32:10 PM

msdulber
New Recruit
6 Posts
user info
edit post

Well, that's not uncommon, probably a 1/4 of the class will feel a little overwhelmed when they read the assignment and have trouble seeing the big picture. All you need to do is ask a few questions to get the ball rolling. Usually Eric or I will understand what you're having trouble with conceptually pretty quickly and get you pointed in the right direction. It's a complicated assignment intentionally. It's supposed to be a culmination of everything you've learned in the class. But, it's a problem that if you break it down into little pieces and do them step by step, it's well within your grasp.

And another thing to consider, I enjoy helping students get it, most teachers do. I don't think I've ever given anyone the impression that I'm too busy or don't want to help so feel free to help me earn my pay and get what you are entitled to, some simple answers to your questions.

4/20/2009 4:50:50 PM

NeuseRvrRat
hello Mr. NSA!
35376 Posts
user info
edit post

google did my final fortran project for me

4/20/2009 10:04:45 PM

sglazier
All American
1114 Posts
user info
edit post

not mine though it was an interesting assignment

4/20/2009 10:09:36 PM

fredbot3000
All American
5835 Posts
user info
edit post

i remember programming back before i became an english major. now html is about the extent of my skillz.

and one time, my roommate made a chess program in fortran. the saddest part was that i couldn't beat it.

4/20/2009 10:35:45 PM

simonn
best gottfriend
28968 Posts
user info
edit post

like landmines man.

landmines.

4/21/2009 9:22:14 AM

Wolfmarsh
What?
5975 Posts
user info
edit post

I really like the "administrations" reponse to this thread.

Thumbs up.

4/21/2009 12:21:18 PM

TenaciousC
All American
6307 Posts
user info
edit post

LOL at this thread

4/22/2009 12:49:07 PM

jessiejepp
All American
2732 Posts
user info
edit post

^for real. I just read the whole thing. haha

4/22/2009 10:26:55 PM

Big Business
Suspended
9099 Posts
user info
edit post

Man, my fortran project was a bitch.

I had to decode some shit, with like fast modular exponentiation or some shit. Second i submitted that shit i deleted my whole folder and threw my laptop into the ocean.

Fuck fortran, fuck mechanical engineering.

I'm Big Business and i approved this message.

4/23/2009 12:01:11 AM

TenaciousC
All American
6307 Posts
user info
edit post

bttt for me working on the same project... without the help of TWW

4/24/2009 12:16:27 AM

ThePeter
TWW CHAMPION
37709 Posts
user info
edit post

Quote :
"I always think of Dr. Warren as being the only prof who's on here..."


There's quite a few professors on here, although I don't know them. One is in Accounting, I know that.

I love seeing professors get on here and own people every once in a while

4/24/2009 5:21:13 AM

bbehe
Burn it all down.
18402 Posts
user info
edit post

Start with making a deck

then make a single player version of poker (basically make sure the computer can evaluate the score of a given hand)

then attempt to make an AI.

then profit!!

4/25/2009 4:34:34 AM

jaZon
All American
27048 Posts
user info
edit post

Quote :
"If I happen to get lucky and catch you at it though it will get ugly very quickly. I haven't been teaching on campus for a while but when I used to teach large sections, I filed quite a few academic integrity cases and have yet to lose one. So please take an honest shot at it and we'll be happy to help.

Sincerely,
Your favorite instructor"


hahahaha, this guy has just become my favorite prof ever

4/25/2009 11:00:10 AM

wawebste
All American
19599 Posts
user info
edit post

would lol again, great thread

4/25/2009 12:56:00 PM

Solinari
All American
16957 Posts
user info
edit post

There are some threads which should be moved to a place of permanence so that they are never lost. This is one of those threads.

4/25/2009 1:24:43 PM

Smath74
All American
93278 Posts
user info
edit post

in the real world, i would seem to think that people get a lot of information on how to do new tasks from a variety of sources. Most people would learn as much, if not more, if allowed to ask for help from peers.

4/25/2009 5:15:59 PM

Solinari
All American
16957 Posts
user info
edit post

^ by and large, that is true, but here's the rub: the csc114 demographic isn't exactly known for its integrity.

4/25/2009 6:47:43 PM

factotum
New Recruit
38 Posts
user info
edit post

The other issue is ... how much help was received. Was it an explanation of how to read a file; was it one line of code; was it 10 lines of code; was is it a subroutine; was it the whole program?

Managing what is acceptable on the potential continuum of help presents a problem for CSC instructors.

They would allow more outside help as ^^ indicates if there were a way to easily delineate between "help" and "plagiarism". That is why most of the time help is limited to TAs or the instructor.

4/25/2009 7:23:02 PM

wdprice3
BinaryBuffonary
45912 Posts
user info
edit post

oh hell yes. this thread is what I'm talking about!

4/25/2009 8:06:55 PM

Big Business
Suspended
9099 Posts
user info
edit post

just

#include <  deck.h>
#include <  poker.h>

I'm Big Business and i approved this message.

4/25/2009 10:05:21 PM

 Message Boards » Study Hall » C++ Poker Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.