https://github.com/adhadse/rabbitgame
A simple command line game of rabbit's simple life.
https://github.com/adhadse/rabbitgame
command-line pynput pytest python
Last synced: 8 months ago
JSON representation
A simple command line game of rabbit's simple life.
- Host: GitHub
- URL: https://github.com/adhadse/rabbitgame
- Owner: adhadse
- License: mit
- Created: 2022-07-20T13:33:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T04:45:08.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T17:32:24.449Z (about 1 year ago)
- Topics: command-line, pynput, pytest, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RabbitGame
A simple command line game of rabbit's simple life.
# Story
Help rabbit find his carrot and store it in the rabbit hole.

## Install
```bash
git clone https://github.com/adhadse/RabbitGame.git
cd RabbitGame
python -m venv ./venv
source ./venv/bin/activate
pip install -r requirements.txt
```
## Gameplay
- use `a` to move left and `d` to move right.
- pick carrot (`c`) using `p` (rabbit changes from `r` to `R`) and drop it in rabbit hole (`O`).
- Jump over rabbit hole using `j`.
- Press `esc` key anytime to escape the game
```bash
py main.py
```
## Testing
Test passes.
```bash
pytest --no-header -v
```
