Skip to content

haripo/HoppingGA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HoppingGA

Learn how to play hopping (= pogo stick) by genetic algorithm.

Demo

Model

Model

Genetic Algorithm

A gene is implemented as an integer array. Its (2n)-th elements represent stretch speed of the model's arm, and (2n+1)-th elements represent stretch speed of its leg. Fitness is defined as how long the model stands and how far the model moves.

  • gene length = 300
  • crossover rate = 0.6
  • selection = tournament
  • mutation rate = 0.01
  • population = 50
  • elite = 1

About

Learn how to play hopping by Generic Algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages