• Post Reply Bookmark Topic Watch Topic
  • New Topic

Poker Game- URGENT HELP  RSS feed

 
mjrox88
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm in a computer science class and I have to write a poker program where the client plays a "robot". I already have everything nailed down except the code for the "robot" i.e. If somebody could help me write the code for the computer player it would be greatly appreciated
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" and joke names aren't acceptable here. You can change your display name here. Thanks!

Second, please don't post the same question to more than one forum. Answering questions already under discussion elsewhere is a waste of time for our poor Ranchers. I deleted the other copy you posted.

Third: so what have you got so far? You ought to have a Player class, or something along those lines. Perhaps if you've done things well, you've got a Player interface. Then implementing the "robot" is just a matter of writing a new implementation for that interface.

But without telling us about what you've got so far, it's going to be hard for us to make suggestions. What does your "Card" class look like? What does your "Player" class look like?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of algorithms have you learned about in this class to implement the computer player? I just finished an Artificial Intelligence class and one section was about minimax search and alpha-beta pruning. These might be helpful for you. Typically these are used in deterministic games (e.g. the outcome of each move is known, like in chess or checkers). However, there are ways to modify them to deal with games of chance as well. If this is the approach you are supposed to take, there should be some information about it in your textbook.

Let us know when you get stuck and come back with some specific questions. We will be more than happy to help you with it.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!