Maze game from python , Python games, He
Maze game from python , Python games, He
S COLLEGE OF ENGINEERING
BENGALURU
Autonomous Institute, Affiliated to VTU
PYTHON AAT
Report on
MAZE
Submitted in partial fulfillment of the
requirements for AAT
Bachelor of Engineering in
Aerospace Engineering
Submitted by:
Praneeth Mahantesh M
Mohammed Zubair
Jayalekshmi DB
Anika Palasamudram
DECLARATION
Anika , Praneeth, Zubair, Jaya student of 1st Semester, B.E,
Department of Aerospace, BMS College of Engineering,
Bangalore, hereby declare that, this AAT Project entitled "MAZE"
has been carried out in Department of CSE, BMS College of
Engineering, Bangalore during the academic semester Mar 2025
– Jul 2025. We also declare that to the best of our knowledge
and belief, the AAT Project report is not from part of any other
report by any other students.
Student
Student Name
Signature
1. Praneeth Mahantesh M
2. Mohammed Zubair
3. Jayalekshmi DB
4. Anika Palasamudram
BMS COLLEGE OF ENGINEERING
DEPARTMENT OF COMPUTER
SCIENCE AND ENGINEERING
CERTIFICATE
This is to certify that the AAT Project titled “MAZE” has been
carried out by PRANEETH MAHANTESH M (1BM24AS038)
MOHAMMED ZUBAIR(1BM24AS034) JAYALEKSHMI DB
(1BM24AS023) ANIKA PALASAMUDRAM (1BM24AS007)during
the academic year 2024-2025.
Hardware Requirements:
A personal computer or laptop
Minimum 2 GB RAM
At least 1 GHz processor
Software Requirements:
Python 3.x
Python IDLE
Command-line interface or terminal for user input/output
3.
DESIGN
MAZE CODE:
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", " ", "W", " ", "#", " ", " ", "Q", " ", " ", " ", "G", "#"],
["#", " ", "#", " ", "#", " ", "#", "#", "#", "#", " ", "#", "#"],
["#", " ", "#", " ", " ", " ", " ", " ", " ", "#", " ", " ", "#"],
["#", " ", "#", "#", "#", "#", "#", "#", " ", "#", "#", " ", "#"],
["#", "E", " ", " ", " ", " ", " ", "#", " ", " ", "#", " ", "#"],
["#", "#", "#", "#", "#", "#", " ", "#", "#", " ", "#", " ", "#"],
["#", " ", " ", " ", " ", "#", " ", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", "#", " ", "#", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", " ", "#", " ", " ", " ", " ", " ", " ", " ", " ", "#"],
["#", "#", " ", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"]
MAZE DISPLAY:
Player can reach the goal through trial, error, and understanding of
the maze.
REFERENC
ES
Nvidia
Google Python Class
W3Schools online web tutorials
Realpython.com
The provided Python code implements a simple text-based maze
game called "Quantum Leap," where the player controls a particle
"P" navigating through a grid-based quantum realm to reach a goal
"G." The game features obstacles and special cells that affect the
player's score and probability. Here's a detailed explanation of the
code:
Code:
particle_position = [1, 1]
score = 0
probability = 0.5
particle_position holds the current row and column of the
particle, initially at position (1,1).
score tracks the player's score.
probability is a floating-point number starting at 0.5,
representing a quantum probability factor that can be
modified during the game.
Main game loop
Code:
while True:
for r in range(len(realm)):
row_display = ""
for c in range(len(realm[r])):
if [r, c] == particle_position:
row_display += "P "
else:
cell = realm[r][c]
if cell == " ":
row_display += ". "
else:
row_display += cell + " "
print(row_display)