Skip to content

S1R15H/Benji

Repository files navigation

Benji Bananas RL Agent

This project implements a Deep Reinforcement Learning agent to play Benji Bananas.

Prerequisites

Before running the code, you must install the following system dependencies.

1. Install Android Tools and Scrcpy

The project relies on scrcpy for low-latency screen capture.

On macOS (Homebrew):

brew install android-platform-tools scrcpy ffmpeg

Quick Start (Docker)

The easiest way to run the training is via Docker.

  1. Prerequisites: Android Emulator running and connected to ADB (adb devices).
  2. Build & Run:
    docker compose up --build
    This will build the container and start training. Logs will appear in ./logs.

Manual Installation

  1. Install dependencies:
    pip install .
  2. Start Training:
    python train.py

2. Connect Android Device

  1. Enable Developer Options and USB Debugging on your Android device (or Emulator).
  2. Connect via USB.
  3. Verify connection:
    adb devices
    You should see a device ID listed.

3. Install Python Dependencies

pip install -e .[dev]

Usage

(To be added)

About

This project successfully implements a Deep Reinforcement Learning (DRL) agent capable of playing Benji Bananas, a physics-based infinite runner. By leveraging Proximal Policy Optimization (PPO) and custom Computer Vision pipelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors