Skip to main content

Posts

Showing posts from January, 2018

Windows Console Snake Game Using Cpp

Namaste Friends,




Today, In this post I am going to share with you few piece of code to make a terminal snake game for Windows Console.
Introduction
Basically Snake Game is One Of the Most Easiest, Interesting, Popular Game To Play. In This Game, A Snake Continuously Move From One Point To Another In a Specific Rectangle Like Area Where A Player Can Control The Movement Of Snake With Keyboard So, That Snake Can't hit The Boundary Wall. To Make Scores In This Game, Snake has To Eat Food That Automatically Appears at Random Place Of Boundary!. Very Easy And Interesting.

Before Explanation, Let's Quickly Take A Look At Terminal Snake Game and Yes, I tried my best to make these codes easy to understand and I also used comments to make the concept more clear.


Example Codes.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 5…

Linux Console Snake Game Using Cpp

Namaste Friends,




Today, In this post I am going to share with you few piece of code to make a terminal snake game for Linux Console.
Introduction
Basically Snake Game is One Of the Most Easiest, Interesting, Popular Game To Play. In This Game, A Snake Continuously Move From One Point To Another In a Specific Rectangle Like Area Where A Player Can Control The Movement Of Snake With Keyboard So, That Snake Can't hit The Boundary Wall. To Make Scores In This Game, Snake has To Eat Food That Automatically Appears at Random Place Of Boundary!. Very Easy And Interesting. Actually, In Linux, There is few little codes adjustment compared to windows because of CONIO.H header file. Basically, This header file Provides Some Unique Console Input Output Function.

Requirement To Run It

LinuxGCC Compiler



Before Explanation, Let's Quickly Take A Look At Terminal Snake Game and Yes, I tried my best to make these codes easy to understand and I also used comments to make the concept more clear.


Ex…

Queue Based Calculator For Basic Mathematical Function Using C++

Namaste Friends,



Today, I am going to share with you piece of code that can evaluate the basic mathematical expression.

Introduction
Basically, In this code, my code will take a mathematical expression as a string than evaluation function will process it to calculate the exact answer of that equation.  Actually,  I create this script only to polish my c++ coding skill.


Example code

Main Function

main(){ cout <<"\n\ ###################################################################\n\\n\ Calculating Program\n\\n\ ++++++++++++++++++++++++++++++++++++++++++++++\n\ + Author : Suraj Singh Bisht +\n\ + Email : surajsinghbisht054@gmail.com +\n\ + Github : github.com/surajsinghbisht054 +\n\ ++++++++++++++++++++++++++++++++++++++++++++++\n\\n\ This Version Only Supports All Operators With Signs \n\ My tested Equation : \n\\n\ …

Related Post