Giter Site home page Giter Site logo

rl-spades's Introduction

Spades

OpenAI gym for the card game spades.

For referrence, see gym-soccer

Development

Agents go in the agents folder. They should inherit from some base class (eg agent or fa_agent) that contains the logic for state representation.

When playing (training), use the appropriate environment, which will contain a list of all the agents (players) in the game, and simulate play using the base class spades.

Installation

pipenv

Recommended: use pipenv.

To use pipenv, you must have pyenv or asdf (recommended) installed, or already have python 3.8 as your machine's python version.

If running on Windows, use pyenv.

To install asdf and the python plugin (linux or macos only):

For linux:

sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
sudo apt install curl git
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
asdf plugin-add python
asdf install python 3.8.2

To install pipenv:

pip install --user pipenv

Read the documentation if you run in to any problems.

Then restart your shell (close and reopen)

If you don't want to, just replace pipenv with pip everywhere in the below commands.

the project

git clone https://github.com/will-jac/rl-spades.git
cd rl-spades
pipenv install
cd gym_spades
pipenv install -e .

Press Y on any prompts to install the required libraries. If using pip, you may need to install these yourself.

Usage

pipenv run python file.py

rl-spades's People

Contributors

will-jac avatar

Stargazers

gengch avatar

Watchers

James Cloos avatar  avatar

rl-spades's Issues

Test code

Is there any test code that can run through?

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.