Skip to content

Reinforcement Learning / AI Bots in Card (Poker) Games - Blackjack, Leduc, Texas, DouDizhu, Mahjong, UNO.

License

Notifications You must be signed in to change notification settings

j-h0/rlcardWithSchnapsen

 
 

Repository files navigation

RLCardWithSchnapsen

This repository is a fork of RLCard, extended to include the Schnapsen card game. RLCard is a toolkit for developing reinforcement learning environments for card games.

Installation

1. Clone the Repository

git clone https://github.com/j-h0/rlcardWithSchnapsen
cd rlcardWithSchnapsen

Setting Up a Virtual Environment

To ensure a clean and isolated environment for managing dependencies, it's recommended to use a Python virtual environment (venv). This will help you avoid conflicts between the packages required for this project and those in your global Python environment.

Before installing dependencies, create and activate a virtual environment:

# Create a virtual environment in the directory 'venv'
python3 -m venv venv

# Activate the virtual environment
source venv/bin/activate 

After activating the virtual environment, proceed with the installation of the necessary dependencies:

pip3 install -e .
pip3 install -e .[torch]

Usage

After installation, you can start using the environment to train and evaluate reinforcement learning algorithms.

Start by familiarizing yourself with the repository, including the original codebase.

Use hyperparameter.sh for hyperparameter grid search

training.sh with different values to train a Schnapsen agent

License

Licensed under the MIT License.


This repository is maintained as part of a bachelor's thesis project focused on applying reinforcement learning to Schnapsen.

About

Reinforcement Learning / AI Bots in Card (Poker) Games - Blackjack, Leduc, Texas, DouDizhu, Mahjong, UNO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%