Skip to content

Commit

Permalink
up version and gymnasium refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fauzisho committed Jul 9, 2024
1 parent fcaaa8c commit d56a33f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 85 deletions.
66 changes: 0 additions & 66 deletions autotesting.py

This file was deleted.

4 changes: 1 addition & 3 deletions gymconnectx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# gymconnectx/__init__.py

import gym
import pygame
from gym.envs.registration import register
from gymnasium.envs.registration import register

# Register the custom environment
register(
Expand Down
6 changes: 3 additions & 3 deletions gymconnectx/envs/gymconnectxenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import sys
from typing import List

import gym
import gymnasium
import numpy as np
import pygame
from gym.spaces import Tuple, Box, Discrete
from gymnasium.spaces import Tuple, Box, Discrete


class PyGameRenderEnv:
Expand Down Expand Up @@ -245,7 +245,7 @@ def stop(self):
sys.exit()


class ConnectGameEnv(gym.Env):
class ConnectGameEnv(gymnasium.Env):
def __init__(self, connect=4,
width=7,
height=7,
Expand Down
6 changes: 0 additions & 6 deletions imgBase64.py

This file was deleted.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"

[project]
name = "gymconnectx"
version = "1.2.1"
description = "An OpenAI Gym Environment Connect X Game with GUI. ConnectX is a game for two players that is based on the well-known Connect 4. The goal is to place X coins in a row, column, or diagonal on a board with dimensions M by N."
version = "2.0.0"
description = "An OpenAI Gymnasium Environment Connect X Game with GUI. ConnectX is a game for two players that is based on the well-known Connect 4. The goal is to place X coins in a row, column, or diagonal on a board with dimensions M by N."
readme = "README.md"
authors = [{ name = "Fauzi Sholichin" }]
license = { file = "LICENSE.md" }
Expand All @@ -14,8 +14,8 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
keywords = ["connect4", "gym", "pygame", "reinforcement learning"]
dependencies = ["gym", "pygame"]
keywords = ["connect4", "gymnasium", "pygame", "reinforcement learning"]
dependencies = ["gymnasium", "pygame"]
requires-python = ">=3.9"

[project.urls]
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

setup(
name='gymconnectx',
version='1.2.1',
version='2.0.0',
description='ConnectX is a game for two players that is based on the well-known Connect 4. The goal is to place X coins in a row, column, or diagonal on a board with dimensions M by N.',
url='https://github.com/fauzisho/GymConnectX',
author='Fauzi Sholichin',
license='MIT License',
packages=find_packages(),
install_requires=['gym', 'pygame', 'numpy'],
install_requires=['gymnasium', 'pygame', 'numpy'],
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
keywords=["tictactoe", "gym", "pygame"],
keywords=["tictactoe", "gymnasium", "pygame"],
python_requires=">=3.9",
include_package_data=True,
)

0 comments on commit d56a33f

Please sign in to comment.