Fork me on GitHub

NumGuess

Number guessing game collection in multiple programming languages

 

Repetition

The same program written in multiple programming languages. Useful for checking differences between them, or as a quick reference.

 

Guideline

Almost all programs are written by a strict guideline to make sure they all look and behave the same way.

 

Variations

44 different implementations including all wrappers and libraries. If you can program in something we missed, please contribute!

 Project status: Stable

Most programs are fully compliant with the guidelines, looking for more languages to add.

When you need just a bit more than “Hello World”!

While a simple hello world program works most of the time, it’s not enough to show you any meaningful features of a programming language. A number guessing game on the other hand, demonstrates user input, basic output, generating a random number, simple logic and some maths as well.

If you’re jumping back to a programming language that you haven’t used for a while, quickly look through its NumGuess implementation to refresh your memory on the syntax.

Supported languages

  • Assembly: DOS 286, DOS 386
  • AWK script
  • Basic: C64, QBasic 1.0, UniVerse
  • Bash script
  • Brainfuck
  • C: GCC, DOS
  • C++: GCC, DOS
  • C#
  • Crystal
  • D Programming Language
  • dBase IV
  • F#
  • Falcon
  • Go Programming Language
  • Google Dart
  • Haskell
  • Haxe
  • Java
  • JavaScript: library, DOM window wrapper, HTML/jQuery wrapper, Node.js console wrapper
  • JScript
  • JVM bytecode for Jasmin
  • Lua terminal
  • Pascal: structured, OOP
  • Perl
  • PHP CLI
  • Python terminal
  • R script
  • Ruby 1.9.3+
  • S-Lang script
  • Swift 2.0
  • Tcl script
  • VB.NET
  • VBScript
  • Windows PowerShell script
  • Windows shell batch

License and copyright

These programs are available under GPLv3, please see the LICENSE, COPYRIGHT and AUTHORS files for details.

Development

Related blog posts

Share Button
0 comments on “NumGuess
1 Pings/Trackbacks for "NumGuess"

Leave a Reply