falling-turnip
haskanoid
falling-turnip | haskanoid | |
---|---|---|
2 | 3 | |
66 | 270 | |
- | - | |
0.0 | 8.0 | |
almost 11 years ago | about 1 year ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | LicenseRef-OtherLicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
falling-turnip
-
Show HN: Making a Falling Sand Simulator
If you want more performance, falling sand simulators can further be made parallel by implementing them using Margolus Neighbourhoods, as in Falling Turnip: https://github.com/tranma/falling-turnip
The idea is that a single iteration divides the world into 2x2 squares and then applies effects sequentially within each square, but not between the squares. This means each square can be processed independently. In the next iteration, the division into squares shifts right and down by one cell each direction. This does mean you need more steps than in a sequential implementation, but I found it to be quite a principled approach to parallelizing cellular automata when I first read about it. One interesting side effect of this design is that falling particles end up being separated by blank space, as shown here: https://futhark-lang.org/static/falling-sand-2016.12.04.webm I wonder if that is fixable.
-
How To Make A Falling Sand Simulation?
and here is a github project of a falling sand game written in Haskell https://github.com/tranma/falling-turnip
haskanoid
- [ANN] Yampa 0.14.4
- [ANN] Yampa 0.14.2, yampa-gloss 0.2.1, haskanoid 0.1.6, and more
-
[ANN] Yampa 0.14.1
Haskanoid (https://github.com/ivanperez-keera/haskanoid) is not a tutorial, but I built that game on purpose to try to help people understand Yampa (it has lots of comments and I tried to pay attention to the structure). It should be fully compatible with Yampa-0.14.1, although you may need to bump that constraint in the cabal file.
What are some alternatives?
tateti-tateti - Meta tic-tac-toe ncurses game.
aeson-tiled - Aeson instances for Tiled map editor types
Allure - Allure of the Stars is a near-future Sci-Fi roguelike and tactical squad combat game written in Haskell; please offer feedback, e.g., after trying out the web frontend version at
breakout - Breakout
affection
general-games - Haskell package with helpful structures for a variety of games
dominion - A Dominion simulator in Haskell
LambdaHack - Haskell game engine library for roguelike dungeon crawlers; please offer feedback, e.g., after trying out the sample game with the web frontend at
dice - Simplistic D&D style dice-rolling system.
FunGEn - A lightweight, cross-platform, OpenGL-based 2D game engine in Haskell
Monadius - 2-D arcade scroller