Coder Social home page Coder Social logo

c0dedaedalus / multi-language-game-of-nim Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 4.0 60 KB

Collection of Source Code in various Languages by writing Program on Single Heap Game of Nim.

License: GNU General Public License v3.0

C 74.89% C++ 25.11%
nim game language

multi-language-game-of-nim's Introduction

Multi Language Game of Nim

Introduction

So, Game of Nim is a very basic game. I've not created anything new with regard to game.

Rather through this game I wish to introduce Beginner Coders/Programmers who are not sure to choose what language to start with or to make a career in or just for hobby or fun. So, I created this Repository for anyone who wishes to get a sneak peek into languages and its basic syntax and logics.

You can Say, It's a kind of Notes on a Programming Langauge for Beginners.

How it would help

Game of Nim will be written in as many languages as possible. So that For any language, a beginner may know basic things such as :

  1. Tools - IDE, Compiler/Interpreter for Language.
  2. Header/Library/Dependancies for Language Files.
  3. Program Structure & Language Syntax.
  4. Variable Declaration, Data Types, Arithmetic & Operators.
  5. Decision/Control Structures.
  6. Looping Structures.
  7. Functions.

Then one could easily find how & which language is suitable for him/her by comparing same Program written under different Languages.

Before You Contribute

Please note that this repository is meant to be a clean place for codestore that will help Begineers to understand the Simplicities & Complexities of languages. Please, Do not put/do anything messy or ambigous here. As a safe practice another dummy repository is being created. Fork that, add some changes to that, create a pull request, merge & save. That's kind of practice repository for you to do messy things in case you don't know how-to. All this is done in order to maintain this repository to be full of clean code pushes. I hope everyone agrees with that.

Thank You

Your Contribution will always be appreciated. Happy Coding

multi-language-game-of-nim's People

Contributors

c0dedaedalus avatar aroraambika avatar

Stargazers

 avatar

Watchers

James Cloos avatar

multi-language-game-of-nim's Issues

Generating same random number vis-a-vis input

For each run, code will generate same sequence of random number with respect to the input.
This problem can be resolved with the help of srand() function which is provided by standard library.

Input outbound limit exceeded

Computer is picking sticks between 1 and 5 due to the logic rand()%5+1.
For generating the random number between 1 and 4 (as the program requires) you should use rand()%4+1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.