This commit is contained in:
2025-11-14 01:32:09 +00:00
parent 295a5f7e1d
commit c79e5df683
4 changed files with 13 additions and 18 deletions
+4 -1
View File
@@ -32,7 +32,10 @@ import Data.Foldable
import Data.Monoid
testStringInit :: Universe -> [String]
testStringInit u = [show $ length $ u ^. uvWorld . cWorld . lWorld . walls]
testStringInit u = [ show $ fmap (
worldPosToScreen (u ^. uvWorld . wCam) )
$ u ^? uvWorld . cWorld . lWorld . creatures . ix 0 . crPos . _xy
]
-- [show $ foldMap (foldMap (Sum . length . (^. seObstacles)))
-- $ u ^. uvWorld . cWorld . incGraph]
-- foldMap prettyShort $ u ^? uvWorld . cWorld . lWorld . machines . ix 0 . mcType . _McProxSensor