Maze game
MerlinKnight (135)

A maze game where you have to gather stars.
-There is a score system
-There are 3 levels so far
-There is a timer

You are viewing a single comment. View All
ChezCoder (83)

for the print(maze[0],maze[1]...etc) you can use a for loop:

for i in maze:
  theMaze += i #basically, convert list to a string then print it! :)
print(theMaze)
MerlinKnight (135)

@ChezCoder I have tried this but the maze does not print in the way I want it. it is all one line. Thank you anyway.

Korotov (2)

@MerlinKnight you can print part of list within range of indexes (slices):
instead of this: print(maze[0],maze[1],maze[2],maze[3],maze[4],maze[5],maze[6],maze[7],maze[8],maze[9],maze[10],maze[11],maze[12])
to:
print(*maze[0:13]) # The single star * unpacks the sequence/collection into positional arguments