Charmine as it currently stands is an experimental, proof-of-concept command line game. The game concept itself needs to be further developed, the level generator should be less random, and some sort of points system would be nice. This version of Charmine was developed as a sandbox to test the basic concept and also showcase the techniques for creating terminal-based games for Linux and macOS.
The goal is to move a character that cycles through A to F to the other side (the right side) of the field. The character can only pass through characters of the same letter and empty spaces.
The go get
command can be used to install Charmine:
go get github.com/mnito/charmine
The help command will show help for other options.
charmine -help
Restricting usable controls is possible with this option.
This specific example will restrict input to right and up:
charmine -controls ru
Valid options are l,u,d,r. Default is ludr.
Setting the density will vary the amount of letters that appear in the field.
charmine -density 10
Valid densities are between 1 and 100. Increasing the density will result in the appearance of more characters in the field. The default is 45.
A seed can be set for the random number generator providing a determinate field per seed under the same conditions.
charmine -seed 123456789
Charmine is licensed under the MIT License.
Michael P. Nitowski
- Email: mike@nitow.ski
- Twitter: @mikenitowski