Coder Social home page Coder Social logo

batak-gym's Introduction

Batak-Gym

This game is a challenging environment for AI projects. One version of the game is the same with spades. It is similar to spades, hearts, bid whist, contract bridge and tarneeb. We will be implementing versions of this game eventually.

card examples

Reinforcement Learning

Batak is a POMDP problem. Its observability is limited to one's hand and the actively picked cards at turns.

Milestones

We are planning to release this environment step by step.

  1. No bidding, spades is the default trump.
  2. With bidding, spades is the default trump.
  3. With bidding, highest bidder sets the trump.

Rules

Default Rules

  • The classic batak game is played with 4 people. The default deck contains 52 cards. These 52 cards are distributed equally to 4 people. So at the beginning of the game each player has 13 cards.
  • Can't play another suit, if one has the current trick's suit.
  • Can't lead trump until trump is broken.
  • After all the cards have been played, points are tallied for each player.

Default Deck with 52 cards

Activatable Rules

  • Must play bigger card if present. (As an example: hearts-7 was thrown on the ground. You also have hearts-5 and hearts-9 and hearts-king. You have to throw at least hearts-9. If the cards in your hand do not pass the cards on the floor, you can play any card)
  • The number of cards in a deck can be changed with easy setup.
  • The game includes four different types of cards: clubs, diamonds, spades and hearts.
  • (If the game contains bidding session) The bidding opens with 5. Other players may raise or pass the bid respectively. If no-one bids, the first bidder is considered to have entered the bidding with 4.
  • The player who won the bidding starts the game.

Rewards

Rewards without bidding

  1. After every character plays a card and hand is decided, a reward is issued as 1 or 0.
  2. After all the cards have been played, reward is issued as taken hands times 10.

Rewards with bidding

Spades style

  1. After every character plays a card and hand is decided, a reward is issued as 1 or 0.
  2. If the player failed the bid reward is -10 times bid. If the player won the bid reward is 10 times bid.

Batak style

  1. After every character plays a card and hand is decided, a reward is issued as 1 or 0.
  2. Player is the bidder and wons the bid, reward is +1 times bid.
  3. Player is the bidder and fails the bid, reward is -1 times bid.
  4. Player is not the bidder and takes nothing reward is the -1 times bidder's bid.

batak-gym's People

Contributors

furkan-pia avatar furkanarslan avatar kivancguckiran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alperbek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.