Hanish Project
Hanish Project
PROJECT
IN
COMPUTER SCIENCE (083)
Academic Year 2022-23
PY-LUDO
NAME : …………………………………….
CLASS : …………………………………… .
ROLL.NO : ……………………………………..
REG. NO : …………………………………….
Of
Pgt.Computer Science
VAILANKANNI PUBLIC SCHOOL
ROYAKOTTAI ROAD , KRISHNAGIRI
BONAFIDE CERTIFICATE
PRINCIPAL
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my gratitude
to the people who have been instrumental in the successful completion of this project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.
The guidance and support received from all the members who contributed and who are
contributing to this project, was vital for the success of the project. I am grateful for their
constant support and help.
Sincerely,
CONTENTS
Introduction
Hardware and Software Requirement
System Development Life Cycle (SDLC)
Source Code
Software Testing
Output
Conclusion
Bibliography
INTRODUCTION
Ludo Game project is written in Python. The project file contains python scripts
(game.py, run.py, painter.py, recorder.py). This is a simple console based strategy
board game which is very easy to understand and use. Talking about the gameplay,
all the playing rules are the same just like we play in real time Ludo.Here at first,
the user has to select players ,either human or computer. After selecting human, the
player has to enter details such as name and select color(red, green, yellow and
blue). The player can also start the game within two players if he/she wants.
After starting the game, a console based ludo board appears, other rules are the
same. First, the computer or the player has to roll the dice. The main thing in this
console based game is that the player just has to press “Enter Key” to roll the dice.
At the top of the board, it displays a dice with the number. The system keeps on
rolling until there’s a possible pawn to move. All the game movements are
performed automatically. Whenever the player tries to end the game, there’s an
option available to save the unfinished game so that he/she can continue it later. A
simple console GUI is provided for the easy gameplay. The gameplay design is so
simple that user won’t find it difficult to use and understand.
In order to run the project, you must have installed Python, on your PC. This is a
simple console Based game written for the beginners.
HARDWARE AND SOFTWARE
REQUIREMENT:
RAM : 2GB(Minimum)
4GB(Recommended)
64bitx64(Recommended)
The systems development life cycle is a project management technique that divides
complex projects into smaller, more easily managed segments or phases. Segmenting projects
allows managers to verify the successful completion of project phases before allocating
resources to subsequent phases.
Software development projects typically include initiation, planning, design,
development, testing, implementation, and maintenance phases. However, the phases may be
divided differently depending on the organization involved.
For example, initial project activities might be designated as request, requirements-
definition, and planning phases, or initiation, concept-development, and planning phases. End
users of the system under development should be involved in reviewing the output of each
phase to ensure the system is being built to deliver the needed functionality.
PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE
INITIATION PHASE
The Initiation Phase begins when a business sponsor identifies a need or an opportunity.
The purpose of the Initiation Phase is to:
Identify and validate an opportunity to improve business accomplishments of
the organization or a deficiency related to a business need.
Identify significant assumptions and constraints on solutions to that need.
Recommend the exploration of alternative concepts and methods to satisfy the need
including questioning the need for technology, i.e., will a change in the business process
offer a solution?
Assure executive business and executive technical sponsorship. The Sponsor designates a
Project Manager and the business need is documented in a Concept Proposal. The
Concept Proposal includes information about the business process and the relationship to
the Agency/Organization.
Infrastructure and the Strategic Plan. A successful Concept Proposal results in a Project
Management Charter which outlines the authority of the project manager to begin the
project.
Careful oversight is required to ensure projects support strategic business objectives and
resources are effectively implemented into an organization's enterprise architecture. The
initiation phase begins when an opportunity to add, improve, or correct a system is identified
and formally requested through the presentation of a business case. The business case should, at
a minimum, describe a proposal’s purpose, identify expected benefits, and explain how the
proposed system supports one of the organization’s business strategies. The business case
should also identify alternative solutions and detail as many informational, functional, and
network requirements as possible.
SYSTEM CONCEPT DEVELOPMENT PHASE
The System Concept Development Phase begins after a business need or opportunity is
validated by the Agency/Organization Program Leadership and the Agency/Organization CIO.
The purpose of the System Concept Development Phase is to:
Determine the feasibility and appropriateness of the alternatives.
Identify system interfaces.
Identify basic functional and data requirements to satisfy the business need.
Establish system boundaries; identify goals, objectives, critical success factors, and
performance measures.
Evaluate costs and benefits of alternative approaches to satisfy the basic functional
requirements
Assess project risks
Identify and initiate risk mitigation actions, and Develop high-level technical
architecture, process models, data models, and a concept of operations. This phase
explores potential technical solutions within the context of the business need.
It may include several trade-off decisions such as the decision to use COTS software
products as opposed to developing custom software or reusing software components, or
the decision to use an incremental delivery versus a complete, onetime deployment.
Construction of executable prototypes is encouraged to evaluate technology to support
the business process. The System Boundary Document serves as an important reference
document to support the Information Technology Project Request (ITPR) process.
The ITPR must be approved by the State CIO before the project can move forward.
The planning phase is the most critical step in completing development, acquisition, and
maintenance projects. Careful planning, particularly in the early stages of a project, is necessary
to coordinate activities and manage project risks effectively. The depth and formality of project
plans should be commensurate with the characteristics and risks of a given project. Project
plans refine the information gathered during the initiation phase by further identifying the
specific activities and resources required to complete a project.
A critical part of a project manager’s job is to coordinate discussions between user, audit,
security, design, development, and network personnel to identify and document as many
functional, security, and network requirements as possible. During this phase, a plan is
developed that documents the approach to be used and includes a discussion of methods, tools,
tasks, resources, project schedules, and user input. Personnel assignments, costs, project
schedule, and target dates are established.
A Project Management Plan is created with components related to acquisition planning,
configuration management planning, quality assurance planning, concept of operations, system
security, verification and validation, and systems engineering management planning.
This phase formally defines the detailed functional user requirements using high-level
requirements identified in the Initiation, System Concept, and Planning phases. It also
delineates the requirements in terms of data, system performance, security, and maintainability
requirements for the system. The requirements are defined in this phase to a level of detail
sufficient for systems design to proceed. They need to be measurable, testable, and relate to the
business need or opportunity identified in the Initiation Phase. The requirements that will be
used to determine acceptance of the system are captured in the Test and Evaluation Master Plan.
The purposes of this phase are to:
Further define and refine the functional and data requirements and document them in the
Requirements Document,
Complete business process reengineering of the functions to be supported (i.e., verify
what information drives the business process, what information is generated, who
generates it, where does the information go, and who processes it),
Develop detailed data and process models (system inputs, outputs, and the process.
Develop the test and evaluation requirements that will be used to determine acceptable
system performance.
DESIGN PHASE
The design phase involves converting the informational, functional, and network
requirements identified during the initiation and planning phases into unified design
specifications that developers use to script programs during the development phase. Program
designs are constructed in various ways. Using a top-down approach, designers first identify
and link major program components and interfaces, then expand design layouts as they identify
and link smaller subsystems and connections. Using a bottom-up approach, designers first
identify and link minor program components and interfaces, then expand design layouts as they
identify and link larger systems and connections. Contemporary design techniques often use
prototyping tools that build mock-up designs of items such as application screens, database
layouts, and system architectures. End users, designers, developers, database managers, and
network administrators should review and refine the prototyped designs in an iterative process
until they agree on an acceptable design. Audit, security, and quality assurance personnel
should be involved in the review and approval process. During this phase, the system is
designed to satisfy the functional requirements identified in the previous phase. Since problems
in the design phase could be very expensive to solve in the later stage of the software
development, a variety of elements are considered in the design to mitigate risk. These include:
Subsystem integration, system, security, and user acceptance testing is conducted during
the integration and test phase. The user, with those responsible for quality assurance,
validates that the functional requirements, as defined in the functional requirements
document, are satisfied by the developed or modified system. OIT Security staff assess
the system security and issue a security certification and accreditation prior to
installation/implementation.
Multiple levels of testing are performed, including:
Testing at the development facility by the contractor and possibly supported by end users
Testing as a deployed system with end users working together with contract personnel
Operational testing by the end user alone performing all functions. Requirements are
traced throughout testing, a final Independent Verification & Validation evaluation is
performed and all documentation is reviewed and accepted prior to acceptance of the
system.
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the user. In
this phase, the system is installed to support the intended business functions. System
performance is compared to performance objectives established during the planning phase.
Implementation includes user notification, user training, installation of hardware, installation of
software onto production computers, and integration of the system into daily work processes.
This phase continues until the system is operating in production in accordance with the defined
user requirements.
OPERATIONS AND MAINTENANCE PHASE
The system operation is ongoing. The system is monitored for continued performance in
accordance with user requirements and needed system modifications are incorporated.
Operations continue as long as the system can be effectively adapted to respond to the
organization’s needs. When modifications or changes are identified, the system may renter the
planning phase.
import random
class Player():
'''
'''choose_pawn_delegate is callable.
'''
self.colour = colour
self.choose_pawn_delegate = choose_pawn_delegate
self.name = name
if self.name is None and self.choose_pawn_delegate is None:
self.name = "computer"
self.finished = False
def __str__(self):
if it is not None
'''
if len(pawns) == 1:
index = 0
if self.choose_pawn_delegate is None:
else:
index = self.choose_pawn_delegate()
return index
class Board():
'''
'''
BOARD_SIZE = 56
BOARD_COLOUR_SIZE = 7
COLOUR_DISTANCE = 14
def __init__(self):
#fn1353c
Board.COLOUR_START = {
Board.COLOUR_END = {
Board.COLOUR_END['yellow'] = Board.BOARD_SIZE
# Position is combination of
self.pawns_possiotion = {}
self.painter = PaintBoard()
# pool means before start1353
self.board_pool_position = (0, 0)
'''save position'''
self.pawns_possiotion[pawn] = position
self.set_pawn(pawn, self.board_pool_position)
start = Board.COLOUR_START[pawn.colour.lower()]
position = (start, 0)
self.set_pawn(pawn, position)
return False
return True
'''
end = self.COLOUR_END[pawn.colour.lower()]
if private_poss > 0:
private_poss += rolled_value
common_poss = end
else:
common_poss += rolled_value
self.set_pawn(pawn, position)
if private_poss == self.BOARD_COLOUR_SIZE:
return True
return False
position = self.pawns_possiotion[pawn]
self.pawns_possiotion.items()
if position == curr_postion]
def paint_board(self):
'''
positions = {}
positions.setdefault(position, []).append(pawn)
return self.painter.paint(positions)
class Die():
MIN = 1
MAX = 6
@staticmethod
def throw():
class Game():
'''
def __init__(self):
self.players = deque()
self.standing = []
self.board = Board()
# is game finished
self.finished = False
self.rolled_value = None
self.curr_player = None
self.allowed_pawns = []
self.picked_pawn = None
self.index = None
self.jog_pawns = []
def add_palyer(self, player):
self.players.append(player)
self.board.put_pawn_on_board_pool(pawn)
def get_available_colours(self):
return sorted(available)
def _get_next_turn(self):
'''
self.players.rotate(-1)
return self.players[0]
if self.board.is_pawn_on_board_pool(pawn):
return pawn
'''
allowed_pawns = []
if rolled_value == Die.MAX:
pawn = self.get_pawn_from_board_pool(player)
if pawn:
allowed_pawns.append(pawn)
self.board.can_pawn_move(pawn, rolled_value):
allowed_pawns.append(pawn)
def get_board_pic(self):
return self.board.paint_board()
def _jog_foreign_pawn(self, pawn):
pawns = self.board.get_pawns_on_same_postion(pawn)
for p in pawns:
if p.colour != pawn.colour:
self.board.put_pawn_on_board_pool(p)
self.jog_pawns.append(p)
'''
self.board.is_pawn_on_board_pool(pawn):
self.board.put_pawn_on_starting_square(pawn)
self._jog_foreign_pawn(pawn)
return
self.board.move_pawn(pawn, self.rolled_value)
if self.board.does_pawn_reach_end(pawn):
player.pawns.remove(pawn)
if not player.pawns:
self.standing.append(player)
self.players.remove(player)
if len(self.players) == 1:
self.standing.extend(self.players)
self.finished = True
else:
self._jog_foreign_pawn(pawn)
Method ask for next player's turn, roll die, ask player
'''
self.jog_pawns = []
self.curr_player = self._get_next_turn()
if rolled_val is None:
self.rolled_value = Die.throw()
else:
self.rolled_value = rolled_val
self.allowed_pawns = self.get_allowed_pawns_to_move(
self.curr_player, self.rolled_value)
if self.allowed_pawns:
if ind is None:
self.index = self.curr_player.choose_pawn(
self.allowed_pawns)
else:
self.index = ind
self.picked_pawn = self.allowed_pawns[self.index]
self._make_move(self.curr_player, self.picked_pawn)
else:
self.index = -1
self.picked_pawn = None
#!/usr/bin/env python3
CLIGame().start()
Software Testing
Software Testing is an empirical investigation conducted to provide stakeholders with
information about the quality of the product or service under test[1] , with respect to the context
in which it is intended to operate. Software Testing also provides an objective, independent
view of the software to allow the business to appreciate and understand the risks at
implementation of the software. Test techniques include, but are not limited to, the process of
executing a program or application with the intent of finding software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that guided its
design and development, so that it works as expected and can be implemented with the same
characteristics. Software Testing, depending on the testing method employed, can be
implemented at any time in the development process, however the most test effort is employed
after the requirements have been defined and coding process has been completed.
TESTING METHODS
Software testing methods are traditionally divided into black box testing and white box
testing. These two approaches are used to describe the point of view that a test engineer takes
when designing test cases.
SPECIFICATION-BASED TESTING
White box testing methods can also be used to evaluate the completeness of a test suite
that was created with black box testing methods. This allows the software team to examine parts
of a system that are rarely tested and ensures that the most important function points have been
tested.
***