Skip to content

Number Guessing Games in Multiple Programming Languages

License

Notifications You must be signed in to change notification settings

granwyntan/Number-Guessing

Repository files navigation

Number Guessing

Number Guessing Games in Multiple Programming Languages

Python

You will need to import a built-in module in python to generate random numbers: import random.
Before that, you would require python on your machine.

How to Run

python3 numberGuessing.py

JavaScript

You will need to install an external module/dependency/library using the command npm install prompt. More info on the package can be found here.
As a prerequisite, you would need Node.js installed.

How to Run

node numberGuessing.js

or

node numberGuessing

Swift

No extra dependencies are requied, apart from Xcode or Swift installed from its official website.

How to Run

swift numberGuessing.swift

C

C#

You will need an IDE/Text Editor, preferably Microsoft Visual Studio, not to be confused with Visual Studio Code, which is also by Microsoft.
Before compilation, the following will also need to be imported:

using System;
using System.Collections.Generic;
using System.Linq;

How to Run

In Microsoft Visual Studio (recommended),
press the run/play button and a terminal/command prompt would pop up.

In Another IDE (e.g. Atom, Visual Studio Code) or directly from command line,
you may install relevant plugins and extensions, and initialise config files (VS Code), etc. and run using .NET Core, provided you have the required softwares downloaded.
Here are some resources in which you can refer to:

C++

Java

Kotlin

Go

Rust

About

Number Guessing Games in Multiple Programming Languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published