Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (540)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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 3301 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder


Medals: 12



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

Hi,

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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Mr.CodeIt (23 views)
2014-12-23 03:34:11

rwatson462 (53 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (85 views)
2014-12-09 22:41:13

BurntPizza (110 views)
2014-12-08 04:46:31

JscottyBieshaar (78 views)
2014-12-05 12:39:02

SHC (89 views)
2014-12-03 16:27:13

CopyableCougar4 (96 views)
2014-11-29 21:32:03

toopeicgaming1999 (155 views)
2014-11-26 15:22:04

toopeicgaming1999 (152 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org 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‑gaming.org
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!