Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ponga

Pong game with Genetic AI, written in Haskell

Install

git clone https://github.com/foollbar/ponga.git
cd ponga
stack build

Training

stack exec training

this will generate a pair of trained gene in gene.txt.

there is no interface to amend training parameters yet, you may edit Train.hs directly.

Visualize

stack exec visualize

you can observe the play of the generated genes.

Play

stack exec play

try defeat them if you want.

use i to move up the paddle, k to move down.

Simulation example

  • Generation 10, 12 secs

10 gene

  • Generation 20, 25 secs

20 gene

  • Generation 60, almost a minute long

60 gene

About

Pong game with Genetic AI

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages