Add analysing machine
This commit is contained in:
@@ -81,9 +81,7 @@ randomLightPositions rm = do
|
||||
xs <- shuffle [0.._numLinkEW rmtype]
|
||||
ys <- shuffle [0.._numLinkNS rmtype]
|
||||
let n = max (length xs) (length ys)
|
||||
return $ zip
|
||||
(take n $ xs ++ xs)
|
||||
(take n $ ys ++ ys)
|
||||
return $ take n $ zip (xs ++ xs) (ys ++ ys)
|
||||
|
||||
intsToPos :: Room -> (Int,Int) -> Point2
|
||||
intsToPos rm (x,y) = V2
|
||||
|
||||
Reference in New Issue
Block a user