semvec/pypi-packages huggingface dataset:
gnomes-at-night-gym 0.0.11
An environment for Gnomes at Night based on OpenAI gym.


## Installation

You can install the package using pip:

```pip install gnomes-at-night-gym```

## Usage

Here is an example of how to import and create the environment:

```python
import gymnasium as gym
import gnomes_at_night_gym
env = gym.make("gnomes_at_night_gym:Board9-v0-multistep", render_mode="rgb_array", board_seed="A", round=1)
```

Then, we can use the environment by:
```python
# Reset the environment
obs_n, info = env.reset(seed=1)
done = False

# Run the environment
while not done:
    action = env.action_space.sample()
    obs_n, reward, terminated, truncated, info = env.step(action)
    done = terminated or truncated
    env.render()
env.close()
```

## Environment Details
### Observation Space
Each player's observation space is a (149,) array containing:
- `current_player` (1 value)
- `token_pos` (2 values)
- `flattened_walls` (144 values) &rarr; {`horizontal_walls` (8x9) + `vertical_walls` (9x8)}
- `treasure_pos` (2 values)

### Action Space
The action space allows the following actions:
- `-1`: Switch turn
- `0`: Stay put
- `1`: Move right
- `2`: Move up
- `3`: Move left
- `4`: Move down


### Coordinate System
The maze is zero-indexed, with coordinates (x, y) where:
- x represents the vertical axis (row)
- y represents the horizontal axis (column)
- Similar to traditional matrix notation

Below is a visual representation of the coordinate system for a 3x3 section of the maze:
| (x, y) | 0     | 1     | 2     |
| ------ | ----- | ----- | ----- |
| **0**  | (0,0) | (0,1) | (0,2) |
| **1**  | (1,0) | (1,1) | (1,2) |
| **2**  | (2,0) | (2,1) | (2,2) |
gitoptim 0.1.0.dev30
SDK tool to connect Gitlab pipelines with Workflows
Requires Python: <4.0,>=3.11

# Gitoptim SDK

## Introduction

Gitoptim SDK is a CLI tool that enables integration of Gitlab pipelines and Workflows. It is designed to be used in
CI/CD jobs.

## Features

- #### Gitlab CI/CD logs analysis

- #### Memlab integration

## Development

### Prerequisites

- Python 3.11 or later
- [Poetry](https://python-poetry.org/) for dependency management

### Setup

1. Install dependencies using `poetry install --with dev`
2. Install git hooks using `pre-commit install`. This will run linters and formatters before each push to repository.

#### Environment variables

The following environment variables are required in order to run the CLI:

```
CI_PROJECT_ID
CI_JOB_ID
CI_API_V4_URL
GITOPTIM_PRIVATE_TOKEN - Gitlab personal or project access token with `api-read` scope and `Guest` role
```

Variables prefixed with `CI_` are provided by Gitlab CI/CD.
See: [docs](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)

#### Pycharm

1. Set the Python interpreter to the one created by Poetry. This can be done by going
   to `File -> Settings -> Project-> Python Interpreter` and selecting the interpreter created by Poetry. Path to the
   interpreter can be found by running `poetry env info` in the terminal.
2. Install Pylint plugin for Pycharm.
3. Enable "Reformat code" on save. This can be done by going to `File -> Settings -> Tools ->
   Actions On Save`.

### How to run

1. Run `poetry shell` to activate the virtual environment.
2. Run `python -m gitoptim` to start the CLI.

**Important**: In order to push to repository you need to have poetry shell enabled so that git hooks can run.