Giter Club home page Giter Club logo

forest-1c / mrl-aiflappybird-python-master Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magicdeveloperdrl/mrl-aiflappybird-python-master

0.0 0.0 0.0 66.89 MB

本项目是用Python编写的AI小游戏,是作者实现用AI玩Flappy Bird小游戏的小项目,当然为了便于AI训练,该游戏进行了一定的简化处理,没有添加开始游戏等其他界面。本文使用的AI算法是基于TensorFlow框架的Nature DQN算法。

Python 100.00%

mrl-aiflappybird-python-master's Introduction

MRL-AIFlappyBird-Python-master

使用AI算法玩FlappyBird

——基于DQN的RL算法

本项目是用Python编写的AI小游戏,是作者实现用AI玩Flappy Bird小游戏的小项目,当然为了便于AI训练,该游戏进行了一定的简化处理,没有添加开始游戏等其他界面。本文使用的AI算法是基于TensorFlow框架的Nature DQN算法。

一、Flappy Bird是什么

Flappy Bird是一款玩家要在游戏中尽可能长地维持小鸟生命的游戏。

小鸟不断向前飞行,会遇到一系列高低不同的管道,管道将小鸟通过的高度限制在特定的范围内。

小鸟由于重力会自动掉落到地面,所以玩家需要不断操作使小鸟进行Flap,躲避管道和地面,游戏分数由小鸟成功通过多少个管道障碍物来衡量。

如果小鸟撞到地面或者管道,它就会死亡并结束游戏。

二、游戏实现效果

20210502_212711.gif

三、计算图结构

img点击并拖拽以移动

该项目的相关博客链接:

【Python小游戏】用AI玩Python小游戏FlappyBird【源码】(https://blog.csdn.net/qq_41959920/article/details/116357264?spm=1001.2014.3001.5501

mrl-aiflappybird-python-master's People

Contributors

magicdeveloperdrl 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.