semvec/pypi-packages huggingface dataset:
private-project-windows-snake-game 0.1.44
A Windows snake game project.It is a private project but you can use it if you trust me.
Requires Python: >=3.7



# Simple Snake Game 🐍

A minimalist snake game written in Python using `asyncio` and `pynput` for keyboard input.

---

## Author

* **userAnonymous**
* GitHub: [ramimK0bir](https://github.com/ramimk0bir)

---

## Installation

Install the game easily using pip:

```bash
pip install windows-snake-game
```

---

## Usage



You can import and run the game from Python code:

```python
import windows_snake_game as snake_game

snake_game.play()

```

---

## Parameters of `play` function

| Parameter     | Type            | Default | Description                                      |
| ------------- | --------------- | ------- | ------------------------------------------------ |
| `speed`       | int             | 5       | Controls the game speed (higher = faster).       |
| `food_emoji`  | str             | "🍎"   | Emoji to represent the food on the grid.         |
| `grid_size`   | tuple (int,int) | (15,12) | Size of the game grid as (width, height).        |
| `block_emoji` | str             | "🟫"   | Emoji or character to represent the grid blocks. |

---

## Controls

* **Arrow keys** to move the snake:

  * Up arrow: Move up
  * Down arrow: Move down
  * Left arrow: Move left
  * Right arrow: Move right
* **Space bar** to pause or resume the game.

---

## How to Play

* The snake moves continuously on the grid.
* Eat the food (represented by the food emoji) to grow longer and increase your score.
* Avoid hitting the walls or the snake's own body.
* The game ends if you collide with yourself or the grid edges.
* Your current score is displayed above the grid.

---

## Notes

* The game uses ANSI escape codes for terminal control (clear screen, colors).
* Works best on terminals supporting Unicode and ANSI colors.
* Keyboard input requires the `pynput` package (automatically handled if installed via pip).
* If running the game script directly, make sure `pynput` is installed: `pip install pynput`.

---



## Troubleshooting

* If the game does not respond to key presses, ensure your terminal supports `pynput` keyboard listening.
* On Windows, you may need to run the terminal with administrator privileges for keyboard capture.
* If `pynput` is not installed, install it via `pip install pynput`.

---

## License

This project is open source. Feel free to contribute or modify!
binarytrees-nv 0.1.4
Package providing recursive and iterative binary tree generators.
Requires Python: >=3.9

This is a package providing recursive and iterative binary tree generators. Each nodes' values are generated using provided functions. (By default, the leaf values are equal to the root value.)
Don't take it too seriously. It is a demo package, but still can be used as a library.

# Installation
```bash
pip install binarytrees_nv
```

## Usage
```python
from binarytrees_nv import gen_bin_tree_iterative, gen_bin_tree_recursive

height: int = 4

# recursive
recursive_tree = gen_bin_tree_recursive(height)
# or iterative
iterative_tree = gen_bin_tree_iterative(height)

print(recursive_tree)
print(iterative_tree)


# Custom functions for leaf values
def left_function(x):
    return x ** 2

def right_function(x):
    return x - 2

custom_tree = gen_bin_tree_iterative(height, left_function=left_function, right_function=right_function)

print(custom_tree)
```