Catalog PyPI
PACKAGE EXPLORERView in registry

3d-connectX-env

PyPI

3D ConnectX for OpenAI Gym.

Versions collected1
Direct dependencies5From release 1.0.1
Last observed20 Oct, 15:30 UTC

README

Version 1.0.1 documentation

3d-connectX-env

BuildStatus PackageVersion Stable Format License

pattern1.gif

3D connectX repository, developed for the OpenAI Gym format.

Installation

The preferred installation of 3d-connectX-env is from pip:

pip install 3d-connectX-env

Usage

Python

import gym_3d_connectX
import gym

env = gym.make('3d-connectX-v0')
env.reset()

env.utils.win_reward = 100
env.utils.draw_penalty = 50
env.utils.lose_penalty = 100
env.utils.could_locate_reward = 10
env.utils.couldnt_locate_penalty = 10
env.utils.time_penalty = 1
env.player = 1
actions = [0, 0, 1, 1, 2, 2, 4, 4, 0, 0, 1, 1, 2, 2, 0, 3]

for action in actions:
    obs, reward, done, info = env.step(action)
    env.render(mode="plot")

Environments

The environments only send reward-able game-play frames to agents; No cut-scenes, loading screens, etc. are sent to an agent nor can an agent perform actions during these instances.

Environment: 3d-connectX-v0

Factor at initialization.

KeyTypeDescription
num_grid intLength of a side.
num_win_seqintThe number of sequence necessary for winning.
win_rewardfloatThe reward agent gets when win the game.
draw_penaltyfloatThe penalty agent gets when it draw the game.
lose_penaltyfloatThe penalty agent gets when it lose the game.
couldnt_locate_penaltyfloatThe penalty agent gets when it choose the location where the stone cannot be placed.
could_locate_rewardfloatThe additional reward for agent being able to put the stone.
time_penaltyfloatThe penalty agents gets along with timesteps.
first_playerintDefine which is the first player.

Step

Info about the rewards and info returned by the step method.

KeyTypeDescription
turnintThe number of the player at this step
winnerintValue of the player on the winning side
is_couldnt_locateboolIn this step the player chooses where to place the stone.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.16 Jul 20215

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
youngeek-0410/3d-connectx-env

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 15:30 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:272cc326d92f7d567b94bffc1e188cb5aa328f54c161aea938d205ec68ff6aea