Skip to content
Projects

About

Resource gathering + programming game

Games & Emulation

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+1
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Swarm

Discord Build Status GitHub release (latest by date) Swarm release on Hackage Contributor Covenant All Contributors

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. More info can be found on the Swarm website.

World 0 after scanning a tree and making a log.

Contributors

See CONTRIBUTING.md for information about various ways you can contribute to Swarm development!

Brent Yorgey
Brent Yorgey

๐Ÿ› ๐Ÿ“ ๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ“– ๐ŸŽจ ๐Ÿค” ๐Ÿšง ๐Ÿ”ฌ ๐Ÿ‘€ โš ๏ธ โœ…
Josh Price
Josh Price

๐Ÿ’ป
Tristan de Cacqueray
Tristan de Cacqueray

๐Ÿ’ป ๐Ÿš‡ ๐Ÿ‘€
Huw Campbell
Huw Campbell

๐Ÿ’ป
Sam Tay
Sam Tay

๐Ÿ’ป
Luis Morillo
Luis Morillo

๐Ÿ’ป
Jens Petersen
Jens Petersen

๐Ÿš‡
Norbert Dzikowski
Norbert Dzikowski

๐Ÿ’ป
Paul Brauner
Paul Brauner

๐Ÿ’ป ๐Ÿš‡ ๐Ÿ”ฌ
Ondล™ej ล ebek
Ondล™ej ล ebek

๐Ÿ’ป ๐Ÿš‡ ๐Ÿค” ๐Ÿ‘€ โš ๏ธ โœ… ๐Ÿ“– ๐Ÿ› ๐Ÿ–‹ ๐Ÿ’ก
Jacob
Jacob

๐Ÿ’ป
Daniel Dรญaz Carrete
Daniel Dรญaz Carrete

๐Ÿ’ป
Ishan Bhanuka
Ishan Bhanuka

๐Ÿ’ป
Ryan Yates
Ryan Yates

๐Ÿ’ป
Alexander Block
Alexander Block

๐Ÿ’ป
Noah Yorgey
Noah Yorgey

๐Ÿ’ป ๐Ÿ“– ๐Ÿš‡
Valentin Golev
Valentin Golev

๐Ÿ’ป
Tamas Zsar
Tamas Zsar

๐Ÿ’ป
Steven Garcia
Steven Garcia

๐Ÿ’ป
Karl Ostmo
Karl Ostmo

๐Ÿ“ ๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ“– ๐ŸŽจ ๐Ÿค” ๐Ÿ‘€ โš ๏ธ โœ… ๐Ÿ’ก
Brian Wignall
Brian Wignall

๐Ÿ’ป ๐Ÿ“–
Chris Casinghino
Chris Casinghino

๐Ÿ“– ๐Ÿ”ฌ
Gagan Chandan
Gagan Chandan

๐Ÿ’ป
persik
persik

๐Ÿ’ป
Chris Hackett
Chris Hackett

๐Ÿ’ป
Nitin Prakash
Nitin Prakash

๐Ÿš‡ ๐Ÿ’ป ๐Ÿšง
Dani Rybe
Dani Rybe

๐Ÿ’ป
Jonathan Knowles
Jonathan Knowles

๐Ÿ’ป
Oliver Pauffley
Oliver Pauffley

๐Ÿ’ป
Patrick Estrada
Patrick Estrada

๐Ÿ’ป
Monty
Monty

๐Ÿ’ป
Alamar
Alamar

๐Ÿ“ฆ
Bendeguz Seres
Bendeguz Seres

๐Ÿ’ป
Patrik Drbal
Patrik Drbal

๐Ÿ› ๐Ÿš‡ ๐Ÿ“–
Tom Scheper
Tom Scheper

๐Ÿ–‹

Building

If you just want to play the game, head over to the Swarm website for installation instructions. If you want to build Swarm from source (e.g. in order to contribute, or to test out the latest bleeding-edge unreleased features), read on.

  1. Clone the Swarm repository, e.g.

    git clone https://github.com/swarm-game/swarm.git
    
  2. If you don't already have the cabal tool:

    1. Get the ghcup tool, a handy one-stop utility for managing all the different pieces of a Haskell toolchain.

    2. Use ghcup to install a supported version of GHC:

      ghcup install ghc 9.8.2 --set
      
    3. Use ghcup to install cabal:

      ghcup install cabal
      
  3. Now use cabal to build and run Swarm:

    cd /path/to/the/swarm/repo
    cabal run -O0 swarm:exe:swarm
    

    (Note that we recommend turning off optimizations with -O0, as they make a big difference in compilation time. Optimized builds are only noticeably faster in scenarios with swarms of robots.)

  4. Go get a snack while cabal downloads and builds all of Swarm's dependencies.

  5. You might also want to check out the scripts directory, which contains an assortment of useful scripts for developers.

Explore related projects

Loadingโ€ฆ