Skip to content

Latest commit

 

History

History

020 - ML Basketball

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ML Basketball

Description

Generating random balls which will learn how to set the appropiate force needed to get into the hoop.

Link

You can see the version live on Codepen

Done

  • create Ball
  • add physics to the Ball
  • add friction, gravity & drag force to the Ball
  • allow user to shot the Ball
  • draw line from the Ball to where the mouse position before the shot
  • see the ball rotation
  • create hoop
  • increase score when the ball goes in the hoop
  • add nn
  • create generations of balls
  • add slider for faster learning
  • change it to work with Matter.js for better physics engine

To do

  • improve fitness function

Credits