Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/photogabble/go-space-mines
Command Line Space Mines Simulator Game ported from BASIC to Go
https://github.com/photogabble/go-space-mines
command-line command-line-game game go go-game golang golang-game simulation
Last synced: about 2 months ago
JSON representation
Command Line Space Mines Simulator Game ported from BASIC to Go
- Host: GitHub
- URL: https://github.com/photogabble/go-space-mines
- Owner: photogabble
- License: mit
- Created: 2017-05-02T15:33:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T09:31:17.000Z (almost 6 years ago)
- Last Synced: 2024-12-10T00:33:31.436Z (2 months ago)
- Topics: command-line, command-line-game, game, go, go-game, golang, golang-game, simulation
- Language: Go
- Homepage:
- Size: 166 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Space Mines
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Gitmoji](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square)](https://gitmoji.carloscuesta.me)![Space Mines BASIC](/doc/spacemines.png "Space Mines BASIC")
This is a port to Go of a BASIC strategy/management game called Space Mines. The BASIC code was originally published in 1982 in an Usborne book titled [Computer Space-games](http://www.worldofspectrum.org/infoseek.cgi?regexp=^Computer+Spacegames$&loadpics=1). In the same year the game was released on tape for the ZX Spectrum 16K, [click here](http://www.worldofspectrum.org/infoseekid.cgi?id=0019122) for more information and a download link to the Spectrum tape image.
Build using `go build` and then execute, you will be presented with output like so:
```
Year 1
There are 47 people in the colony
You have 4 mines and $ 799
Satisfaction Factor 1Your mines produced 47 tons each
Ore in store: 188 tons
Selling:
Ore selling price: $ 9 /ton
Mine selling price: $ 3487 /mine
How much ore to sell? 188
How many mines to sell? 1You have $ 5978
Buying
How much to spend on food? (Appr. $100 EA.) 2000
How many more mines to buy? 0
```The aim of the game is to survive 10 years in office; the original printed source contains variables for total amount of food and food price. However it doesn't actually use them.
I have included scanned copies of the original source for [page 24](doc/isaaman-24.png) and [page 25](doc/isaaman-25.png) of the book this game was published in.