-
Nov 26th, 2013, 04:02 PM
#1
Thread Starter
Lively Member
Computer player card game help.
I have been looking on the web for some examples of how to create computer players for a card game I made. I have no idea what this is called code wise etc. Can someone point me in the right direction to get me started or if you have some code examples etc.
Thanks
-
Nov 28th, 2013, 07:44 PM
#2
Re: Computer player card game help.
I don't think anybody is capable of providing an example when we don't know what this card game is about. You'll have to simulate AI, which can be easy to difficult depending on the game logic. In most cases you can get away with just using random generated values, but for AI that seems to "think" a little more, you'll have to generate a range of possibilities and determine the most appropriate.
<<<------------
.NET Programming (2012 - 2018)
®Crestron - DMC-T Certified Programmer | Software Developer <<<------------
-
Dec 3rd, 2013, 12:45 AM
#3
New Member
Re: Computer player card game help.
set up the concrete rules for your game and describe the effects for all of the cards you want to place in the game.
-
Jul 26th, 2017, 12:03 AM
#4
Junior Member
Re: Computer player card game help.
Do you have a zip file for this
-
Jul 26th, 2017, 07:42 PM
#5
Re: Computer player card game help.
There is an idea I have what you can do with the computer AI. Don't just make it completely random, but rather instead have a dice rolling mechanism from 1-100 to determine what actions he must do in the card game. This will allow difficulty to come into play because you can change the range of the actions. For example, lets say if the game is blackjack. If the computer has a hand that adds up to 16, the computer rolls to dice to make a decision internally. If the results of the dice falls between 40-100, the computer will take a chance and hit. Else the computer will stand. You can change the range depending on the card results. And make changes if you decide to add difficulty later on. Hope this helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|