Skip to content

Code for Pathfind-RL, conducted at "Delhi Technological University - Invictus '25"

License

Notifications You must be signed in to change notification settings

ohmygodashish/pathfind-rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathfind-RL

Welcome to Pathfind-RL.

This project aims to explore reinforcement learning techniques for pathfinding in a grid-based environment. It uses Pygame for visualization and a custom sprite handling system.

Overview

The project currently consists of two main components:

  1. Sprite Generation: The spritemaker() function (in main.py) processes sprite sheets located in the assets/ directory. It extracts individual sprites, indexes them, and saves the index for later use. This allows the game to easily load and display sprites from the sheets. The SpriteMaker class (in utils/getsprites.py) handles the sprite sheet processing.

  2. Game Loop and Grid Visualization: The gameloop() function (in main.py) initializes a Pygame window and creates a GameGrid object (from utils/grid.py). The game loop handles basic events (like closing the window) and draws the grid on the screen. The GameGrid class manages the grid's dimensions, tile size, and rendering.

Getting Started

Prerequisites

  • Python 3.12
  • Conda or Python-venv (to manage virtual environments)

Installation

  1. Clone the repository:
git clone https://github.com/JustSurWHYving/pathfind-rl.git
  1. Install the required packages:
pip install -r requirements.txt

Usage

  1. Run the main script:
python main.py
  1. The game window will open, displaying a grid.

About

Code for Pathfind-RL, conducted at "Delhi Technological University - Invictus '25"

Resources

License

Stars

Watchers

Forks

Languages