An open API service indexing awesome lists of open source software.

https://github.com/swarm-game/swarm

Resource gathering + programming game
https://github.com/swarm-game/swarm

Last synced: 5 months ago
JSON representation

Resource gathering + programming game

Awesome Lists containing this project

README

          

Swarm
=====

[![Discord][badge-discord]][discord]
[![Build Status][build-status]][actions]
[![GitHub release (latest by date)][release-img]][releases]
[![Swarm release on Hackage][hackage-img]][hackage]
[![Contributor Covenant][badge-covenant]](CODE_OF_CONDUCT.md)
[![All Contributors][contributors]](#contributors)

[build-status]: https://github.com/swarm-game/swarm/actions/workflows/haskell-ci.yml/badge.svg
[release-img]: https://img.shields.io/github/v/release/swarm-game/swarm?logo=github
[releases]: https://github.com/swarm-game/swarm/releases
[hackage-img]: https://img.shields.io/hackage/v/swarm.svg?logo=haskell
[hackage]: https://hackage.haskell.org/package/swarm
[actions]: https://github.com/swarm-game/swarm/actions
[badge-covenant]: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg
[badge-discord]: https://img.shields.io/discord/1260717118576525372.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2
[discord]: https://discord.gg/kp8MuSgkPw
[contributors]: https://img.shields.io/github/all-contributors/swarm-game/swarm?color=ee8449&style=flat-square

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](https://swarm-game.github.io).

[![World 0 after scanning a tree and making a log.](images/tutorial/log.png)](https://swarm-game.github.io)

Contributors
------------

See [CONTRIBUTING.md](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

πŸ’»

Building
--------

If you just want to play the game, [head over to the Swarm website for
installation instructions](https://swarm-game.github.io/installing/).
If you want to build Swarm from source (*e.g.* in order to
[contribute](CONTRIBUTING.md), 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

1. If you don't already have the `cabal` tool:
1. Get the [`ghcup` tool](https://www.haskell.org/ghcup/), a handy
one-stop utility for managing all the different pieces of a
Haskell toolchain.
1. Use `ghcup` to install a supported version of GHC:

ghcup install ghc 9.8.2 --set

1. Use `ghcup` to install `cabal`:

ghcup install cabal

1. 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.)

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

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