Project Report on Snakes & Ladders, Study Guides, Projects, Research of C programming

Documentation of C Programming project on Snakes and Ladders

Typology: Study Guides, Projects, Research

2017/2018

Uploaded on 04/17/2018

samirskya
samirskya 🇳🇵

4.4

(23)

13 documents

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
KANTIPUR CITY COLLEGE
(Affiliated to Purbanchal University)
Putalisadak, Kathmandu
A project submitted in partial fulfillment of the requirement for the first semester
of Bachelor of Computer Application
A Project Report
On
Snakes, Ladders & Treasure”
[Code No: BCA178CO]
Submitted by:
Samir Shakya (313271)
Sonika Maharjan (313272)
Ushan Buddharcharya (313274)
Submitted to
Department of Information Technology
July 2015
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Project Report on Snakes & Ladders and more Study Guides, Projects, Research C programming in PDF only on Docsity!

KANTIPUR CITY COLLEGE

(Affiliated to Purbanchal University)

Putalisadak, Kathmandu

A project submitted in partial fulfillment of the requirement for the first semester

of Bachelor of Computer Application

A Project Report

On

“Snakes, Ladders & Treasure”

[Code No: BCA178CO]

Submitted by:

Samir Shakya (313271)

Sonika Maharjan (313272)

Ushan Buddharcharya (313274)

Submitted to

Department of Information Technology

July 2015

A project submitted in partial fulfillment of the requirement for the first semester

of Bachelor of Computer Application.

Submitted by:

Samir Shakya (313271)

Sonika Maharjan (313272)

Ushan Buddhacharya (313274)

Project Supervisor

Mr. Sameer Tamrakar

Kantipur City College

Department of Information Technology

Kantipur City College

Putalisadak, Kathmandu

July 2015

CERTIFICATE OF APPROVAL

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:

  1. Samir Shakya (313271)
  2. Sonika Maharjan (313272)
  3. Ushan Buddhacharya (313274)

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

ABSTRACT

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

TABLE OF CONTENTS

ACKNOWLEDGEMENT........................................................................................... i

Chapter 1: Introduction

1.1 Background

History

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.

Today

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.

1.2 Features

This project is the replica of snakes & ladders with some changes and some of the features of this project are:

  • GUI interface
  • Single player game
  • Keyboard interaction

1.3 Objectives

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:

  • To give a GUI interface to the classic snake & ladders board game.
  • To make it user friendly.
  • To provide an easy interface.
  • To entertain people in their leisure time.

1.4 System Suggested

Operating System : Windows XP or more Software : Turbo C/C++

1.5 Limitations

  • (^) Single player
  • Less interaction
  • Low graphics

Chapter 2: Literature Review

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

  • Program Splash and Details Main Menu Window
  • Start Game Option
  • Exit Option Game Window
  • Game square board.
  • Dice display board.
  • Player Position board
  • Dice button for running the dice. Trophy Window
  • Trophy Display

End Window

  • Play Again Option
  • Exit Option

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.

Chapter 4: Design Specification and Implementation

4.1 Input Design

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.

  • Exit / Stop Game : The game can be stopped or exit by pressing the ESC button.
  • Reset Game: We can reset the game while playing if we like to by pressing ‘R’ or ‘r’.
  • (^) New Game: New game can be started from the main menu window.

BCA-I Page 14

  • Chapter 1: Introduction.............................................................................................. ABSTRACT................................................................................................................. ii
    • 1.1 Background.....................................................................................................
    • 1.2 Features..........................................................................................................
    • 1.3 Objectives........................................................................................................
    • 1.4 System Suggested..........................................................................................
  • Chapter 2: Literature Review.....................................................................................
  • Chapter 3: System Study............................................................................................. - 3.1 Existing System............................................................................................... - 3.2 Proposed System............................................................................................
  • Chapter 4: Design Specification and Implementation.............................................. - 4.1 Input Design.................................................................................................... - 4.2 Output Design................................................................................................. - 4.3 System Flowchart...........................................................................................
  • Chapter 5: Results....................................................................................................... - 5.1 Screenshots.....................................................................................................
  • Chapter 6: Conclusion...............................................................................................
  • REFERENCES..........................................................................................................
  • BCA-I Page
  • BCA-I Page