N
N
nepster-web2014-04-15 13:37:29
Bots
nepster-web, 2014-04-15 13:37:29

Is there anything to add to the rules of the bot for the fool card game?

The situation is this, we are working on a gaming site, we have written a fool card game (transferable and flip), but in order to lure users, the ability to play with a bot will be added.
The bot does not have to be a true player, since no one likes to lose, but he must have a good game skill.
Actually, what is the question, I started writing rules for the bot, something like TK, in order to understand its work well. So:

ПРОЦЕСС ИГРЫ 
---------------------------------------------------
- Первый ход Бота 
  - правила:  [r.1],[r.2]
- Бот подкидывает или переводит
  - правила:  [r.3]
- Бот отбивается 
  - правила:  [r.4],[r.5]




RULE: ПРАВИЛА ПО КОТОРЫМ БОТ ДЕЛАЕТ ХОД
---------------------------------------------------

 r.1 Бот ходит с любой наименьшей карты вне козыря 
 r.2 Бот ходит с любой наименьшей карты
  
 
 

RULE: ПРАВИЛА ПО КОТОРЫМ БОТ БЕРЕТ ИЛИ ПЕРЕВОДИТ 
---------------------------------------------------

 r.3 Бот подкидывает начиная с наименьшей карты вне козыря. (Вначале все 6, 5, 3 и тп.)
  ПОДКИДНОЙ:
    r.5.1 бот подкидывает козырь только если в колоде менее 10 карт
    
  ПЕРЕВОДНОЙ 
    r.5.1 бот всегда пытается перевести 
    ИСКЛЮЧЕНИЕ:
      Если возникают следующие ситуации:
        - У бота осталось 4 или 3 или 2 или 1 карты по козырю, бот не переводит а бьется
    ЕСЛИ ПЕРЕВЕСТИ НЕТ ВОЗМОЖНОСТИ, БОТ ОТБИВАЕТ. ПРАВИЛА [r.3], [r.4]

Примечание, использование козыря в последнюю очередь при переводе и ходе.




RULE: ПРАВИЛА ПО КОТОРЫМ БОТ ОТБИВАЕТСЯ 
---------------------------------------------------

 r.4 Бот отбивается любой наименьшей картой, если нет нужной масти, бот бьет наименьшим козырем 
 r.5 Нет масти для того, чтобы отбиться и нет козыря, бот принимает.

Tell me, please, could I miss something and is it possible to somehow make the bot a stronger player? Maybe someone has ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
killla, 2014-04-15
@nepster-web

RULE: RULES BY WHICH THE BOT MAKES A MOVE to move
from paired cards, regardless of value
(if there are two eights and a seven, it is better to move from an eight)
take into account the suits
(if there are many cards of the same suit in the hands, it is better to move from the other suit, then the probability of dropping a card more)
(if you have a lot of senior cards of the same suit in your hands (or left), then, on the contrary, walk from this suit - pull out trump cards from the
opponent
)
and not only trump cards, with a "good memory" you can know all the cards that the opponent has at the end of the game)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question