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
<html> | |
<head> | |
<script src="jsGameSoup/js/jsgamesoup.js"></script> | |
<script src="jsGameSoup/js/random.js"></script> | |
<script src="jsGameSoup/js/sprite.js"></script> | |
<script src="jsGameSoup/js/collisions.js"></script> | |
<script src="main.js"></script> | |
</head> | |
<style> | |
html, body { |
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
#! /usr/bin/python | |
import random | |
#goal = "This message evolves like my love for you. I'll always love you, Cat. -Josh <3" | |
goal = "I Love You Cat" | |
generations = None | |
popSize = 25 | |
mutation = 150 #Bigger = Less mutation |
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
module SAScan where | |
import Network.Shpider | |
import System.Posix.Unistd | |
import Data.List | |
import Char | |
firstUser = "theprototype" | |
toLoad = False | |
savedFile = "SASaved" |
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
# Ben's Magical Perceptron | |
def dot_product(a, b): | |
return sum([a[i]*b[i] for i in range(len(a))]) | |
def decision( x, w, theta ): | |
return (dot_product(x, w) > theta) | |