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

https://github.com/styd/chadet

Characters Detective: A command line game of guessing random characters intelligently.
https://github.com/styd/chadet

game ruby ruby-gem terminal

Last synced: 2 months ago
JSON representation

Characters Detective: A command line game of guessing random characters intelligently.

Awesome Lists containing this project

README

        

# chadet [![Build Status](https://travis-ci.org/styd/chadet.svg?branch=master)](https://travis-ci.org/styd/chadet) [![Gem Version](https://badge.fury.io/rb/chadet.svg)](https://badge.fury.io/rb/chadet)

## Background

This game is taken from the game that was played on paper by me and my friends
back in high school (although back then we only played it with 4 numbers, 1, 2,
3, and 4). We were even doing some small competitions among us for
this game and it was fun. But, sadly, nobody is playing this now, so I kinda
miss it.

I search through for the game on the internet and I found
[something similar](https://en.wikipedia.org/wiki/Bulls_and_Cows)
but not quite. So, I thought, hey, I can make this. And this is it.

It's still a simple terminal game. No fancy playing against computer yet.
Instead you just guess random characters generated by the computer and the
computer will give you the number of correct characters and correct positions.

## Preview

$ chadet

$ chadet --chars=abc

$ chadet --number=2 --chars=123

## Requirements

This game needs `bash` and `xterm` to run properly.

## Installation

$ gem install chadet

## Usage

Read the rules of the game by typing `chadet --rules` or simply `chadet -r`. You will find out how to play the game.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/styd/chadet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## TODO

* Write actual test.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).