Вы находитесь на странице: 1из 10

National Institute of Technology Karnataka

Surathkal, Mangalore, India

Software Requirements Specification


06-Sept-2013

Game of Thrones
(Chess Game)

Submitted in partial fulfillment of the requirements of Software Engineering Lab Instructor: Mrs. Sumitra Subrahmanya

Submitted By:12CA31 Kota Pavankumar 12CA33 Mahendra Patidar 12CA34 Manav Aggarwal 12CA35 Mayank Narsaria 12CA36 Md. Ekram

Game of Thrones

Table of Contents
1. INTRODUCTION..................................................................................................................... 1 1.1 PURPOSE ................................................................................................................................ 1 1.2 SCOPE .................................................................................................................................... 1 1.3 DEFINITIONS, ACRONYMS, AND ABBREVIATIONS................................................................... 1 1.4 REFERENCES .......................................................................................................................... 3 1.5 OVERVIEW ............................................................................................................................. 3 2. GENERAL DESCRIPTION .................................................................................................... 3 2.1 PRODUCT PERSPECTIVE .......................................................................................................... 3 2.2 PRODUCT FUNCTIONS ............................................................................................................ 3 3. SPECIFIC REQUIREMENTS ................................................................................................ 4 3.1 EXTERNAL INTERFACE REQUIREMENTS ................................................................................. 4 3.1.1 System Interfaces ........................................................................................................... 4 3.1.2 User Interfaces ............................................................................................................... 4 3.2 FUNCTIONAL REQUIREMENTS ................................................................................................ 4 3.3 USE CASES ............................................................................................................................. 5 3.4 NON-FUNCTIONAL REQUIREMENTS ....................................................................................... 6 4. ANALYSIS MODELS .............................................................................................................. 6 4.1 CONTROL FLOW DIAGRAMS (CFD) ....................................................................................... 6 4.2 STATE-TRANSITION DIAGRAMS (STD) .................................................................................. 7 A. APPENDICES .......................................................................................................................... 8 A.1 RULES OF PLAY .................................................................................................................... 8 A.2 POSITION OF PIECES ............................................................................................................... 8

Software Requirements Specification

Page ii

Game of Thrones

1. Introduction
Chess is a game played between two opponents on opposite sides of a board containing 64 squares of alternating colors. Each player has 16 pieces: 1 king, 1 queen, 2 rooks, 2 bishops, 2 knights, and 8 pawns. The goal of the game is to checkmate the other king. Checkmate happens when the king is in a position to be captured (in check) and cannot escape from capture.

1.1 Purpose This document specifies all the requirements for the Chess game software. These requirements relate to the functionality, constraints, performance, attribute and the system interface. The Chess program is a program used to play game. First goal is to allow two users or players to play the game interactively from remote locations. And the second goal will be that the program should be working and allow the users to play the game. 1.2 Scope This document describes the software requirements for the Chess program. This document will be used by the end-users, tester, and developers of the game. 1.3 Definitions, Acronyms, and Abbreviations Bishop: one of two pieces of the same color that may be moved any number squares diagonally, as long as no other piece blocks its way. One piece always remains on White squares and the other always on Black. Castling: To move the king two squares horizontally and bring the appropriate rook to the square the king has passed over. Check: To make a move that puts the opponents King under direct attack.

Software Requirements Specification

Page 1

Game of Thrones

Checkmate: a situation in which an opponents king is in check and it cannot avoid being captured. This then brings the game to a victorious result. Chess Board: A board you need to play Chess. Have 64 black and white square. Chess: A game played by 2 people on a chessboard with 16 pieces each. En Passant: A method by which a pawn that is moved two squares can be captured by an opponent's pawn commanding the square that was passed. King: The main piece of the game, checkmating this piece is the object of the game. It can move 1 space in any direction. Knight: This piece can move 1 space vertically and 2 spaces horizontally or 2 spaces vertically and 1 space horizontally. This piece looks like a horse. This piece can also jump over other pieces. Pawn: One of eight men of one color and of the lowest value usually moved one square at a time vertically and capturing diagonally. Player or user: A user or a player will be the person that is playing the chess game. Queen: This piece can move in any number of spaces in any direction as long as no other piece is in its way. Rook: one of two pieces of the same colour that may be moved any number squares horizontally or vertically, as long as no other piece blocks its way. Stalemate: A situation in which a players king is not in check, but that player can make no move. This then results is a stalemate, which is a draw.

Software Requirements Specification

Page 2

Game of Thrones

1.4 References www.chess.com en.wikipedia.org/wiki/Chess www.sparkchess.com/ en.wikipedia.org/wiki/Rules_of_chess www.chess.com/learn-how-to-play-chess www.google.com

1.5 Overview The rest of this document describes the system requirements for the Chess program.

2. General Description
2.1 Product Perspective People or students need an entertainment tool to enjoy and play with friends over the network. As described above, of this document, CHESS intend to fill this need by providing a software allows entertainment with friends and over the network. Some software games allow playing games with people that you may not know, and often times require a monthly fee for the service. 2.2 Product Functions CHESS system will provide the following functions: Record of Move timers. To play the game against the system. To play the game online with other player on the internet. To connect the system to the other system using IP Address. Records of moves made in this game so far. Records of pieces that each player killed. Records of valid moves around selected pieces.

Software Requirements Specification

Page 3

Game of Thrones

3. Specific Requirements
3.1 External Interface Requirements 3.1.1 System Interfaces: CHESS software integrates two internal systems to provide functionality Client: CHESS software has an interface to the users client to receiver user input and moves selections for the game. Network: CHESS software has an interface to the network in order to transmit information and connect players . 3.1.2 User interfaces: CHESS includes an interface resembling a common chessboard. CHESS require Java 6 installed, memory space and storage space on the user computer to save data. Furthermore, the computer will need memory space because CHESS is only accessible to computers what had installed the application. However, CHESS is not portable and the clients will need to install one time the chess application on each computer that will be used to play. Connect interface is used by game players and display player information. As players make moves, the screen is updated to reflect the moves made in the game. 3.2 Functional Requirements Functional requirements of this game is as follows. Users shall be able to connect via IP address. Users shall be able to start a game once two users are connected. Users shall be given the choice of who plays black and white. Each user is to have their pieces start at the bottom of the board on their display. The player playing white is first to move. A player may forfeit at any time during game play. A player must be given a confirm dialogue before forfeiting.

Software Requirements Specification

Page 4

Game of Thrones

Forfeiting shall end the game immediately. The active player shall select a piece by clicking it. When a piece is selected, all legal moves for that piece are highlighted. When a piece is selected, the active player may select another piece by clicking it. A selected piece must always belong to the active player. The active player shall move the selected piece by clicking on any legal square. The active player shall capture a piece by moving onto a legal square containing an opposing piece. Captured pieces shall be displayed in a captured pieces box. The inactive player may request to undo the prior move. There shall be no more than one undo request per turn. An undo request shall be ratified by the active player. When an undo request is accepted the game is reverted to the state of the board prior to the request. A player shall be able to save a log of the moves at any time. 3.3 Use Cases

Software Requirements Specification

Page 5

Game of Thrones

3.4 Non-Functional Requirements CHESS runs on any computer hardware meeting the following criteria: Capable to use TCP connections Includes Memory Storage Includes a mouse Includes a keyboard Communication between the clients is facilitated by common network protocols using TCP/IP. CHESS software requires a system of least 1 gigabyte of RAM memory. CHESS not provide backup or recovery operations.

4. Analysis Models
4.1 Control Flow Diagram (CFD)

Software Requirements Specification

Page 6

Game of Thrones

4.2 State-Transition Diagrams (STD)

Software Requirements Specification

Page 7

Game of Thrones

A. Appendices
A.1. Rules of Play:
The game of chess is played between two opponents who move their pieces alternately on square board called a chessboard. The player with the white pieces commences the game. A player is said to have the move, when his opponents move has been made. The objective of each player is to place the opponents king under attack in such a way that the opponent has no legal move. The player who achieves this goal is said to have checkmated the opponents king and to have won the game. Leaving ones own king under attack, exposing ones own king to attack and also capturing the opponents king are not allowed. The opponent whose king has been checkmated has lost the game. If the position is such that neither player can possibly checkmate, the game is drawn.

A.2. The Initial Position of the Pieces:


The chessboard is composed of an 8 x 8 grid of 64 equal squares alternately light (the white squares) and dark (the black squares). The chessboard is placed between the players in such a way that the near corner square to the right of the player is white. At the beginning of the game one player has 16 light-coloured pieces (the white pieces); the other has 16 dark-coloured pieces (the black pieces). These pieces are as follows: A king, usually indicated by the symbol A queen, usually indicated by the symbol Two rooks, usually indicated by the symbol Two bishops, usually indicated by the symbol Two knights, usually indicated by the symbol Eight pawns, usually indicated by the symbol

Software Requirements Specification

Page 8

Вам также может понравиться