返回博客

人工智能玩转谷歌浏览器小恐龙游戏

本文介绍了一个使用神经网络和遗传算法训练谷歌 Chrome 离线小游戏“小恐龙”的 AI 项目 IAMDinosaur。该项目通过读取屏幕像素信息(距离、长度、速度)作为输入,控制小恐龙跳跃躲避仙人掌。项目地址:https://github.com/ivanseidel/iamdinosaur

无意中发现了一个有意思的 AI 开源项目 项目名称:IAMDinosaur 项目地址:跳转到 Github IAMDinosaur

IAMDinosaur 项目简介

A simple artificial intelligence to teach Google Chrome’s offline dinosaur to jump cactus, using Neural Networks and a simple Genetic Algorithm.

译:这是一个简单的人工智能,教导谷歌 Chrome 浏览器的离线游戏 小恐龙 Flappy T-Rex,这个项目使用了神经网络算法和一个简单的遗传算法。

IAMDinosaur 视频简介

感兴趣的话可以看看视频介绍:跳转到 Youtube 查看 本站也提供视频的播放

工作原理

We have 3 different inputs read from the pixels of the screen:

  1. Distance from the next cactus
  2. Length of the next cactus
  3. Speed of the current cactus

We have also, one output with 3 possible states:

  1. output < 0.45: Press DOWN key
  2. output > 0.55: Press UP key
  3. default: Release both keys

具体请见项目地址:跳转到 Github