Aim:Create a Snake and Ladders game from C language
Problem Satement:You will have a 10x10 places over the board. It's a multiplayer game
It's just a basic Loading bar made using the windows.h Sleep command using color 0A (green) text colour. The main fuctions calls it at the very beginning of our game code for the gaming look.
This is main part of our code. Where the whole game's algorithm lies in. Player access this function fron the main function, and then based on the number of players playing, it forms the loop in which game runs untill someone reaches to the end.
For various conditions, like geting the six for the very first time to begin the game or having a ladder or getting cut by a snake.
This game has a simple 2d matrix representation, which prints the player number to the position where the player was at last time, and also prints all the way it is, for graphic gamming analysis. It also has the finishing condition, which prevents the pawn to not get lost after getting more values than the 100th element of the array.
This section is the CPU of our whole code. It access all other function, as the user desires, and returns the ouput after every function gets executed.
For my game, this main function also provides the main menu of the game, where you can start playing the game, or you can first read the tutorials before playing the game.