From 73963404db8d4f3ff8b9b768678b87e981e4f745 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Sat, 1 May 2021 20:56:42 -0400 Subject: [PATCH] added some samples --- Ekitai.hs | 2 +- Sim.hs | 2 +- samples/ekitai | 9 +++++++++ samples/flow | 32 ++++++++++++++++++++++++++++++++ samples/hourglass | 27 +++++++++++++++++++++++++++ 5 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 samples/ekitai create mode 100644 samples/flow create mode 100644 samples/hourglass diff --git a/Ekitai.hs b/Ekitai.hs index 6b9806f..9e416e1 100644 --- a/Ekitai.hs +++ b/Ekitai.hs @@ -29,7 +29,7 @@ main = do -- putStrLn $ show $ stringToSim contents initialState <- buildInitialState $ stringToSim contents endState <- B.defaultMain ekitaiApp initialState - print endState + -- print endState return 0 -- main :: IO () diff --git a/Sim.hs b/Sim.hs index 5769c47..97456fc 100644 --- a/Sim.hs +++ b/Sim.hs @@ -116,7 +116,7 @@ chunkToChar :: ChunkData -> Char chunkToChar c = case chunkType c of Water -> '~' - Air -> '.' + Air -> ' ' Wall -> '#' _ -> '?' diff --git a/samples/ekitai b/samples/ekitai new file mode 100644 index 0000000..1041334 --- /dev/null +++ b/samples/ekitai @@ -0,0 +1,9 @@ + ~~~~~~~ ~~  ~~ ~~ ~~~~~~~~  ~~~~~  ~~  + ~~      ~~  ~~  ~~    ~~    ~~   ~~ ~~  + ~~~~~  ~~~~~   ~~  ~~  ~~~~~~~ ~~  + ~~     ~~  ~~  ~~  ~~  ~~   ~~ ~~  + ~~~~~~~ ~~  ~~ ~~  ~~  ~~  ~~ ~~  + + + +####################################################### diff --git a/samples/flow b/samples/flow new file mode 100644 index 0000000..4e8bf19 --- /dev/null +++ b/samples/flow @@ -0,0 +1,32 @@ +##~~~~~~~~~ # +### ~ ~~~~ # +# ##~~~~~~~ # +# ## ~ ~~~ # +# ## # +# ## ## +# ### +# ## # +# ## # +# ## # +# # +## # +### # +# ## # +# ## # +# ## # +# ## ## +# ### +# ## # +# ## # +# ## # +## # +### # +# ## # +# ## # +# ## # +# ## ## +# ### +# ## # +# ## # +# ## # +############# diff --git a/samples/hourglass b/samples/hourglass new file mode 100644 index 0000000..5880028 --- /dev/null +++ b/samples/hourglass @@ -0,0 +1,27 @@ +################################## +################################## + ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~~~## + ##~~~~~~~~~~~~~~## + ## ## + ## ## + ## ## + #### #### + #### #### + ## ## + ## ## + ## ## + ## ## + ## ## + ## ## + ## ## + ## ## + ## ## + ## ## +################################## +################################## -- 2.20.1