nyx-game
By gilmi
Haskell-Tetris
Final project for EECS 368 written in Haskell (by Ubspy)
Our great sponsors
nyx-game | Haskell-Tetris | |
---|---|---|
2 | 2 | |
- | 24 | |
- | - | |
- | 0.0 | |
- | almost 3 years ago | |
Haskell | ||
- | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
nyx-game
Posts with mentions or reviews of nyx-game.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-09.
- Looking for small finished games developed in Haskell
-
Tetris project I made in Haskell
well. clearly, writing a game in Haskell is very doable. ;-) For example, https://gitlab.com/gilmi/nyx-game some screencast of its prototype. https://streamable.com/0biaj
Haskell-Tetris
Posts with mentions or reviews of Haskell-Tetris.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-21.
-
Tetris project I made in Haskell
Tetris.processEvent could be restructured using mapM_ / Data.Foldable.traverse_ - right now it looks like an imperative for-loop that happens be recursive. also, length and !! are O(n) so the whole thing ends up being quadratic (not that it really matters for a list this small, but worth mentioning)
You're going to have a much easier time using something like Map.Map (Int, Int) GridSquare for your matrix instead of the nested lists. Although from a didactic perspective mapBoard was probably good to write, if you model the matrix as a Map it becomes trivially Map.mapWithKey. You can also filter, fold, and traverse the map, so e. g. getFallingPieces could be written:
What are some alternatives?
When comparing nyx-game and Haskell-Tetris you can also consider the following projects:
dino-rush - 🌋 Endless runner game
ludum-dare-34 - The themes for LD34 were: "two button controls" and "growing"
awesome-haskell - A curated list of awesome Haskell frameworks, libraries and software.
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#
haste-compiler - A GHC-based Haskell to JavaScript compiler
nikki - Nikki and the Robots platformer game
haskell-game-programming - A central repository of Haskell Game Programming resources, put together by Keera Studios
Raincat - A puzzle game with a cat in lead role (Haskell)
ludum-dare-31 - The theme for LD31 was "Entire Game on One Screen"