Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  AI for a card game  (Read 3713 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder

Medals: 12

« Posted 2009-02-05 08:32:00 »


I'm on a card game ("la belote coinchée"), I have done most of the UI and functionalities. Now, I'm working on the AI.

There is to step by game :
- bet ("mise") : I made some functions for the card in hand. It works not too bad but it doesn't take in account other bet.
- play : I start to put a set of rules but it beging to be awfully complicated without having a real strategy...

I will take any advice/tips that will help me  Wink

(The game is only in french right now but it is not too difficult to understand)

How to play (quickly explained  Tongue) :
"Mise" : one after another play do a bet. If you don't want to put any, just pass ("passe"). When someone bet, he must put a higher bet (step of 10). When someone bet, he give a color that will be the trump ("atout"). Bet ends when noone put a higher bet. ("capote" and "coinche" not working right now)

Bonus :
- If you have 3 following cards +30 points
- If you have 4 following cards +50 points
- If you have 5 following cards +100 points
- If you have 4 queens, 4 kings, 4 10, 4 aces +100 points
- If you have 4 9 +180 points
- If you have 4 V +200 points

If you have the queen and the king of the trump card, +20 points (not in game yet, you have to say "belote" and "rebelote" when you play thoses cards)

"Play": the order of the cards are from weakest to strongest : 7, 8, 9, V, D, R ,10, 1
and for trump card : 7,8, D,R,10, 1, 9, V
You must put a card that is the same color than the first card.
If you don't have the color, you must put a trump card (and you get cards if no one else put a higher trump card).
If you don't have the color and your partner has put the hight card, you can put any card you like.
If the fist card is trump color, you must put a higher trump card (if you can't put any other trump card).
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (38 views)
2016-04-18 14:18:53

KaiHH (38 views)
2016-04-18 08:35:41

KaiHH (69 views)
2016-04-15 12:43:58

theagentd (71 views)
2016-04-14 02:16:17

theagentd (80 views)
2016-04-14 02:15:43

IanParcs (96 views)
2016-04-12 03:51:16

IanParcs (39 views)
2016-04-12 03:50:03

IanParcs (35 views)
2016-04-12 03:49:54

IanParcs (32 views)
2016-04-12 03:49:52

IanParcs (40 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!