swarm: 2D resource gathering game with programmable robots
Swarm is a 2D programming and resource gathering game. Program your robots to explore the world and collect resources, which in turn allows you to build upgraded robots that can run more interesting and complex programs. See the README for more information and instructions on how to play or contribute!
Module organization
For developers getting oriented, Swarm's modules are organized into sublibraries. Roughly in order from inner to outer, they are:
swarm-util: miscellaneous utilities
swarm-lang: parsing, typechecking, etc. for the Swarm language
swarm-scenario: scenario descriptions, parsing, & processing
swarm-engine: game simulation
swarm-doc: generating documentation
swarm-tui: textual user interface
swarm-web: web interface
swarm: the swarm executable
See the Swarm module guide for a more in-depth guide to the codebase.
library swarm:swarm-tui
Modules
[Index] [Quick Jump]
library swarm:swarm-doc
Modules
[Index] [Quick Jump]
library swarm:swarm-util
library swarm:swarm-tournament
Modules
[Index] [Quick Jump]
library swarm:swarm-web
library swarm:swarm-engine
Modules
[Index] [Quick Jump]
- Swarm
- Swarm.Effect
- Game
- Achievement
- Swarm.Game.CESK
- Swarm.Game.Exception
- Robot
- Scenario
- Objective
- Scoring
- Swarm.Game.Scenario.Status
- Topography
- Navigation
- Structure
- Swarm.Game.ScenarioInfo
- Swarm.Game.State
- Swarm.Game.Step
- Swarm.Game.Tick
- Swarm.Game.Value
- Swarm.Log
- Swarm.Version
library swarm:swarm-scenario
Modules
[Index] [Quick Jump]
- Swarm
- Swarm.Constant
- Game
- Achievement
- Swarm.Game.Device
- Swarm.Game.Display
- Swarm.Game.Entity
- Swarm.Game.Failure
- Swarm.Game.Ingredients
- Swarm.Game.Land
- Swarm.Game.Recipe
- Swarm.Game.ResourceLoading
- Swarm.Game.Robot
- Swarm.Game.Scenario
- Swarm.Game.Scenario.Objective
- Swarm.Game.Scenario.RobotLookup
- Swarm.Game.Scenario.Style
- Topography
- State
- Swarm.Game.Terrain
- Swarm.Game.World
- Util
library swarm:swarm-topography
Modules
[Index] [Quick Jump]
- Swarm
- Game
- Swarm.Game.Location
- Scenario
- Topography
- Swarm.Game.Scenario.Topography.Area
- Swarm.Game.Scenario.Topography.Grid
- Navigation
- Swarm.Game.Scenario.Topography.Placement
- Swarm.Game.Scenario.Topography.ProtoCell
- Swarm.Game.Scenario.Topography.Rasterize
- Swarm.Game.Scenario.Topography.Structure
- Topography
- Swarm.Game.Universe
- World
- Game
library swarm:swarm-lang
Modules
[Index] [Quick Jump]
- Swarm
- Effect
- Language
- Swarm.Language.Capability
- Swarm.Language.Context
- Swarm.Language.Elaborate
- Swarm.Language.Format
- Swarm.Language.JSON
- Swarm.Language.Key
- Swarm.Language.Kindcheck
- Swarm.Language.LSP
- Swarm.Language.Parser
- Swarm.Language.Pipeline
- Swarm.Language.Pretty
- Swarm.Language.Requirements
- Swarm.Language.Syntax
- Text
- Swarm.Language.Typecheck
- Swarm.Language.Typed
- Swarm.Language.Types
- Swarm.Language.Value
Flags
Manual Flags
Name | Description | Default |
---|---|---|
ci | Make warnings error | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- swarm-0.6.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.2.0.0, 0.3.0.0, 0.3.0.1, 0.4, 0.5.0.0, 0.6.0.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | aeson (>=2.2 && <2.3), AhoCorasick (>=0.0.4 && <0.0.5), array (>=0.5.4 && <0.6), astar (>=0.3 && <0.3.1), base (>=4.14 && <4.20), boolexpr (>=0.2 && <0.3), brick (>=2.1.1 && <2.5), brick-list-skip (>=0.1.1.2 && <0.2), bytestring (>=0.10 && <0.13), clock (>=0.8.2 && <0.9), colour (>=2.3.6 && <2.4), commonmark (>=0.2 && <0.3), commonmark-extensions (>=0.2 && <0.3), containers (>=0.6.2 && <0.8), cookie, data-fix (>=0.3 && <0.4), deriving-compat (>=0.6 && <0.7), directory (>=1.3 && <1.4), dotgen (>=0.4 && <0.5), either (>=5.0 && <5.1), exceptions, extra (>=1.7 && <1.8), filepath (>=1.4 && <1.5), free (>=5.2 && <5.3), fused-effects (>=1.1.1.1 && <1.2), fused-effects-lens (>=1.2.0.1 && <1.3), fuzzy (>=0.1 && <0.2), githash (>=0.1.6 && <0.2), hashable (>=1.3.4 && <1.5), hsnoise (>=0.0.3 && <0.1), http-client (>=0.7 && <0.8), http-client-tls (>=0.3.6.3 && <0.3.7), http-types (>=0.12 && <0.13), JuicyPixels (>=3.3 && <3.4), lens (>=4.19 && <5.4), linear (>=1.21.6 && <1.24), lsp (>=2.4 && <2.7), megaparsec (>=9.6.1 && <9.7), minimorph (>=0.3 && <0.4), mtl (>=2.2.2 && <2.4), murmur3 (>=1.0.4 && <1.1), natural-sort (>=0.1.2 && <0.2), nonempty-containers (>=0.3.4 && <0.3.5), optparse-applicative (>=0.16 && <0.19), palette (>=0.3 && <0.4), pandoc (>=3.0 && <3.2), pandoc-types (>=1.23 && <1.24), parser-combinators (>=1.2 && <1.4), prettyprinter (>=1.7.0 && <1.8), random (>=1.2.0 && <1.3), scientific (>=0.3.6 && <0.3.8), servant-docs (>=0.12 && <0.14), servant-multipart, servant-server (>=0.19 && <0.21), SHA (>=1.6.4 && <1.6.5), simple-enumeration (>=0.2 && <0.3), split (>=0.2.3 && <0.3), sqlite-simple (>=0.4.19.0 && <0.4.20), swarm, syb (>=0.7 && <0.8), tagged (>=0.8 && <0.9), template-haskell (>=2.16 && <2.22), terminal-size (>=0.3 && <1.0), text (>=1.2.4 && <2.2), text-rope (>=0.2 && <0.3), text-zipper (>=0.10 && <0.14), time (>=1.9 && <1.15), transformers (>=0.5 && <0.7), unicode-show (>=0.1 && <0.2), unordered-containers (>=0.2.14 && <0.3), utf8-string, vector (>=0.12 && <0.14), vty (>=6.1 && <6.3), vty-crossplatform (>=0.4 && <0.5), wai (>=3.2 && <3.3), wai-app-static (>=3.1.8 && <3.2), wai-extra, warp (>=3.2 && <3.5), witch (>=1.1.1.0 && <1.3), witherable (>=0.4 && <0.5), word-wrap (>=0.5 && <0.6), yaml (>=0.11 && <0.11.12.0) [details] |
Tested with | ghc ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 |
License | BSD-3-Clause |
Copyright | Brent Yorgey 2021 |
Author | Brent Yorgey |
Maintainer | byorgey@gmail.com |
Category | Game |
Bug tracker | https://github.com/swarm-game/swarm/issues |
Source repo | head: git clone git://github.com/swarm-game/swarm.git |
Uploaded | by BrentYorgey at 2024-07-15T20:26:00Z |
Distributions | |
Executables | swarm-host-tournament, swarm-docs, swarm-scene, swarm |
Downloads | 567 total (29 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2024-07-15 [all 1 reports] |