Played by TimNew

Machine

Built by TimNew

Build the Game

Engine

PixiJS

Play the Game

I am a hopeless arcade player

But I am a developer

Build my own KIT

Neural Network

Model

  • Horizontal distance to next pipe
  • Vertical distance to upper pipe
  • Vertical distance to lower pipe
  • The height of the gap between pipes
  • Bird vertical speed
  • Bird horizontal speed

Inputs

Output

  • Flap the wing

Train the model

Labeled Data

Find the answer from

Evolution

Evolution Algorithm

Gene

Crossover

Mutation

Selection

Premature

Noise is important

(Randomness)

Tournament

Fitness

  • + How long it flew

Pipe Challenge

Passing a pipe is way harder than just flying

Fitness v2

  • + How long it flew
  • + How many pipes it passed * 1000

1st Gen issue

Fitness v3

  • + How long it flew
  • + How many pipes it passed * 1000
  • - Distance from the gap when failed

Birds love sky and ground

Fitness v4

  • + How long it flew
  • + How many pipes it passed * 1000
  • - Distance from the gap when failed
  • - 500 when hits sky or ground

Play Time

Could you beat gen 7

GAME OVER

Thank you

FlappyBird played by AI

By timnew

FlappyBird played by AI

  • 129