Guess My Number is a silly little game that I first heard about and wrote a version of on my Casio fx-7000G programmable calculator during a bored moment in math class in 1987. The versions here include a couple of additions like input validation and computer guesses.
This repo exists because all my other work on GitHub is in repos I don't own, often in private repos, and I thought I should have something here that is mine.
I assume you will run each of these on Linux.
I have chapters in one of my books for shell scripting, Python, Perl, and PHP. I figured they are all must-have languages here. The other languages are here because I was in the mood to either remember or learn how to use it for this simple use case that day.
I wrote these, in this order:
- Python
- Bash
- C
- Perl
- PHP
- Racket (based on Scheme, which is based on Lisp)
- COBOL
- Go
- Ruby
Future ideas/plans:
- Dunno. Maybe Java? Erlang? gForth? Rust? Something else??
Code contributions via PR are welcome, but thus far everything here has been written by me. I'll edit this note if that changes.