Number Guessing Games in Multiple Programming Languages
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.
python3 numberGuessing.py
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.
node numberGuessing.js
or
node numberGuessing
No extra dependencies are requied, apart from Xcode or Swift installed from its official website.
swift numberGuessing.swift
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;
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: