formatting
This commit is contained in:
parent
915ec947f5
commit
ed960acef3
@ -1,11 +1,11 @@
|
|||||||
module HushGP.Genome where
|
module HushGP.Genome where
|
||||||
|
|
||||||
import HushGP.State
|
|
||||||
import HushGP.Utility
|
|
||||||
import Data.Map qualified as Map
|
|
||||||
import Data.List
|
import Data.List
|
||||||
import Data.List.Split
|
import Data.List.Split
|
||||||
|
import Data.Map qualified as Map
|
||||||
import HushGP.Instructions.Opens
|
import HushGP.Instructions.Opens
|
||||||
|
import HushGP.State
|
||||||
|
import HushGP.Utility
|
||||||
|
|
||||||
-- | Makes a random plushy from variables in a passed argMap and
|
-- | Makes a random plushy from variables in a passed argMap and
|
||||||
-- a passed list of instructions.
|
-- a passed list of instructions.
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
module HushGP.PushTests
|
module HushGP.PushTests where
|
||||||
|
|
||||||
-- ( module HushGP.PushTests.GenericTests,
|
-- ( module HushGP.PushTests.GenericTests,
|
||||||
-- module HushGP.PushTests.IntTests,
|
-- module HushGP.PushTests.IntTests,
|
||||||
-- module HushGP.PushTests.UtilTests,
|
-- module HushGP.PushTests.UtilTests,
|
||||||
-- )
|
-- )
|
||||||
where
|
|
||||||
|
|
||||||
-- import HushGP.PushTests.GenericTests
|
-- import HushGP.PushTests.GenericTests
|
||||||
-- import HushGP.PushTests.IntTests
|
-- import HushGP.PushTests.IntTests
|
||||||
|
@ -21,8 +21,8 @@ data Gene
|
|||||||
| GeneVectorBool [Bool]
|
| GeneVectorBool [Bool]
|
||||||
| GeneVectorString [String]
|
| GeneVectorString [String]
|
||||||
| GeneVectorChar [Char]
|
| GeneVectorChar [Char]
|
||||||
-- |State -> State is the function itself. String stores the name of the function.
|
| -- | State -> State is the function itself. String stores the name of the function.
|
||||||
| StateFunc (State -> State, String)
|
StateFunc (State -> State, String)
|
||||||
| PlaceInput String
|
| PlaceInput String
|
||||||
| Close
|
| Close
|
||||||
| Open Int
|
| Open Int
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
module HushGP.Utility where
|
module HushGP.Utility where
|
||||||
|
|
||||||
|
import Control.Monad
|
||||||
import HushGP.State
|
import HushGP.State
|
||||||
import System.Random
|
import System.Random
|
||||||
import Control.Monad
|
|
||||||
|
|
||||||
-- | Generates a single random instruction from a list of instructions.
|
-- | Generates a single random instruction from a list of instructions.
|
||||||
randomInstruction :: [Gene] -> IO Gene
|
randomInstruction :: [Gene] -> IO Gene
|
||||||
|
Loading…
x
Reference in New Issue
Block a user