This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
from functools import partial | |
from random import choices, randint, random, randrange | |
import time | |
from typing import Callable, List, Tuple | |
Genome = List[int] | |
Population = List[Genome] | |
FitnessFunc = Callable[[Genome], int] | |
PopulationFunc = Callable[[], Population] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* v1.1 (October 5, 2014) | |
* - Added 2D and 4D implementations. | |
* - Proper gradient sets for all dimensions, from a | |
* dimensionally-generalizable scheme with an actual | |
* rhyme and reason behind it. | |
* - Removed default permutation array in favor of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* OpenSimplex (Simplectic) Noise in Javascript. | |
* original by Kurt Spencer (https://gist.github.com/KdotJPG/b1270127455a94ac5d19) | |
* ported to Javascript (ASM) by Ryan Guthrie | |
* | |
*/ | |
function OpenSimplexASM(stdlib, foreign, heap ) { | |
"use asm"; |