Skip to content

Instantly share code, notes, and snippets.

View vitprado's full-sized avatar

Vitor Prado vitprado

View GitHub Profile
@vitprado
vitprado / gahello.php
Last active July 15, 2022 19:53 — forked from nitrix/gahello.php
Genetic Algorithms in PHP
<?php
$POPULATION = array(); //population of individuals
$GEN_COUNT = 1;
$TEST_COUNT = 0;
$GENE_OPTIONS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ !@#$%&*1234567890";
if( isset($_GET['goal']) ){
$GOAL = $_GET['goal'];
} else {
$GOAL = "Hello World!";