Git Product home page Git Product logo

game_playing_ai's Introduction

Game Playing AI

This project explores the application of multi-agent reinforcement learning (MARL) systems in complex grid world environments against preprogrammed agents. Utilizing Deep Q-Network (DQN) and Proximal Policy Optimization (PPO) algorithms, it aims to develop, evaluate, and compare the performance of MARL systems.

Installation

git clone [repo_url]

cd game-playing-ai

poetry install

Usage

poetry shell

python main_starter.py

Testing example model

  • Run the program
  • Click 'Play Food Game'
  • Write down the directory of the model you want to test ex: 'data/models/20240311114022_episode_999_obs_F__comb_F__solo_T'
  • Click 'Run'

In case you want to try the model in different environment, open up model's config file and change the game componenet you want to test.

data/models/20240311114022_episode_999_obs_F__comb_F__solo_T/config.json


{
    "DRL_algorithm": "DQN",
    "rows": 15,
    "cols": 20,
    "state_size": 2100,
    "action_size": 4,
    "memory_size": 100000,
    "gamma": 0.95,
    "epsilon_min": 0.01,
    "epsilon_decay": 0.995,
    "batch_size": 128,
    "learning_rate": 0.0001,
    "target_update_freq": 1000,
    "nn_type": "CNN",
    "solo": true,
    "num_drl_agents": 2,  <-- Chage this for different number of DRL agents
    "num_preprogrammed_agents": 2,  <-- Chage this for different number of preprogrammed agents
    "obstacles": false,  <-- Chage this to true for obstacles
    "combat": false,  <-- Chage this to true for combat mode
    "num_input_channels": 7
}

game_playing_ai's People

Contributors

abbymark avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.