Project

chadet

0.0
No commit activity in last 3 years
No release in over 3 years
Characters Detective: A command line game of guessing random characters intelligently. Computer will generate a random set of characters. The default number of characters is 4 and the default set of characters is decimal digits from 0 to 9. After each guess you make, computer will tell you how many characters you guessed correctly and how many characters that their position you guessed correctly. Next, you can guess intelligently based on the previous answers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.13
~> 5.0
~> 10.0
 Project Readme

chadet Build Status Gem Version

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 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 code of conduct.

TODO

  • Write actual test.

License

The gem is available as open source under the terms of the MIT License.