









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Documentation of C Programming project on Snakes and Ladders
Typology: Study Guides, Projects, Research
1 / 17
This page cannot be seen from the preview
Don't miss anything!










The undersigned certify that they have read and recommended to the Department of Information
Technology for acceptance, a project report entitled “Snakes, Ladders and Treasures” submitted
by:
in partial fulfillment for the award of the Degree of Bachelor of Computer Science in Computer
Applications.
Mr. Sameer Tamrakar
Supervisor
Kantipur City College
External Examiner
Mr. Raju Kattel
Head of Department Kantipur City
College
Snake and ladder is well known game among children even among matured people. The rules and regulation of the game are as well-known as the game. The case study meant for implementing this game without losing its interesting and attraction. The game is in single player mode. The computer itself will act as the second player.
The user can interact with the game using keyboard. The number and position of the ladder and snake are generated fixed.
Random mode numbering is used for user action in which the user is able to press the button long time and the number goes to a loop and when user released the number was displayed.
The purpose of the game is to get the treasure chest on the 100 th^ gridded square box before the
opponent. It is a single player game. The dice roll determines the speed and the number of
movement. The player can move its game piece forward by the number in the dice. It has
obstacles in between the journey, which the gamer will have to overcome, like being bitten by
the snake or being overthrown by the opponent.
The game explore the classic game with a new twist.
7
ACKNOWLEDGEMENT........................................................................................... i
The board game, today called Snakes and Ladders, originated in ancient India, where it was known with the name Mokshapat or Moksha Patamu. It's not exactly known when or who invented it, though it's believed the game was played at a time as early as 2nd century BC. According to some historians, the game was invented by Saint Gyandev in the 13th century AD. Originally, the game was used as a part of moral instruction to children. The squares in which ladders start were each supposed to stand for a virtue, and those housing the head of a snake were supposed to stand for an evil. The snakes outnumbered the ladders in the original Hindu game. The game was transported to England by the colonial rulers in the latter part of the 19th century, with some modifications. The modified game was named Snakes and Ladders and stripped of its moral and religious aspects and the number of ladders and snakes were equalized. In 1943, the game was introduced in the US under the name Chutes and Ladders.
Snakes and Ladders (also known as Chutes and Ladders) is a classic children's game played on a square grid board. The objective is to be the first player to reach the highest numbered spot on the top row (100 th^ tile). Snakes or other perils can set you back, while ladders or other boons can help you advance quickly. This game: Snakes, ladders and treasures is the modified version of the original. The additive feature of treasures makes the game more interesting to play.
It is comparatively, an easy game and can be played without network connectivity.
This project is the replica of snakes & ladders with some changes and some of the features of this project are:
BCA-I Page 10
We made this game or project so that we could give our best in possible ways and show what we learned. The objectives of this project are:
Operating System : Windows XP or more Software : Turbo C/C++
BCA-I Page 11
The historic version had root in morality lessons, where a player's progression up the board represented a life journey complicated by virtues (ladders) and vices (snakes). The snakes & ladders game are used to play in board manually. We are trying to develop a system which makes, look and feel very interesting to play the game. Snakes and Ladders originated in India as part of a family of dice board games that included Gyan chauper and pachisi (present-day Ludo and Parcheesi). It was known as moksha patam or vaikunthapaali or paramapada sopaanam (the ladder to salvation). The game made its way to England and was sold as "Snakes and Ladders", then the basic concept was introduced in the United States as Chutes and Ladders (an "improved new version of England's famous indoor sport") by game pioneer Milton Bradley in 1943.
3.2 Proposed System The proposed system is designed to give a professional look and feeling GUI for Snake & Ladder game. The system has a splash screen, which was animated and designed with good look and feel. Game board was drawn by taking all initial screen conditions and keyboard interaction. The program is divided into five screens:
Splash Screen
End Window
BCA-I Page 13
Gameplay
Game play is very simple in Snakes, Ladders and Treasures. The player takes turn rolling the single die and moving the number of spaces that it shows. If the player lands on the head of a snake, the game piece will be sent back to the location of that snake's tail. If the game piece lands at the foot of a ladder, the piece will climb up to the top, thus significantly advancing the journey to the treasure. The game initiates when the dice roll calls for 1. Until it is 1, the game pieces cannot enter the ground. The piece moves forward only by the number value on the dice roll. Otherwise, it stays intact. If the dice rolls 6 on a turn, game play will proceed as normal, except that at the end of your turn you will be allowed to roll again. If you roll three 6s in a row, you will be sent back to the beginning and must stay there until you roll another 6 to begin your journey again. The player may join or leave the game at any time. Due to the nature of the game, it is fairly easy in game level and fun to play.
Input for the Snake & ladder program is dice running from player & CPU.
For player or user interaction the input design are designed with buttons and layout styles.
Dice Running: For dice running a button is allocated for the player. Player has to press the space bar to throw the dice. The received dice number will be displayed on the dice box.
BCA-I Page 14