laitimes

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

Realize walking maze.

The main functions are the interface display, the response of the up, down, left and right keys, and the current number of steps.

Through this topic, you will be familiar with the use of arrays, strings, etc., and master the basic methods of programming and the design of friendly interfaces.

(1) Game interface display: maze map, up and down left and right movement effects.

(2) Action selection: The up, down, left, and right keys correspond to the movement function of up, down, left, right, and left, and the handling of obstacles.

(3) Score statistics function: number of steps, etc.

(1) User data management.

(2) Design a program that automatically walks the maze so that the shortest path is obtained.

Learn PyQt5 + Tkinter

Learn Pygame, become familiar with Python, and implement a randomly generated maze map program

Implement the game interface program and the score statistics function program

Learn Python + MySQL to implement a user data management program

Design AI algorithms to implement automatic maze programs (DFS, BFS, reinforcement learning, genetic algorithms)

main.py is the primary function

maze.py A maze function is generated randomly

color.py store color functions for

main_new.py is the main function that was rewritten by the teacher after acceptance

mapp.py Self-designed mazes (non-randomly generated mazes) that you rewrite after being accepted by the teacher

Due to time and other reasons, the second AI algorithm for generating mazes has not yet been implemented

Game interface

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

Start the game: Step count in the top left corner

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

Feedback on information encountering obstacles

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

AI automatic maze walking (the program needs to be improved, there is a problem with the step count)

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

Problem: Sometimes AI programmers crash and haven't found a bug yet

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

Game interface: the starting point is on the far right, and the ending point is in the leftmost red position

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms
Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms
Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

Out of the Maze: Output "Win"

Maze_AI: A maze mini-game based on Python + Pygame + AI algorithms

The foundation is not solid: I chose a Python language that I am not very familiar with, and it took some time to review the syntax during the process

Dig a pit for yourself: I refused the invitation of my classmates to form a team, and I did a task of three people by myself, and the result was not good

Time management is not efficient enough: the schedule is not scientific enough, and it is always impossible to complete the tasks set by yourself

Unclear needs: It is true that they did not ask the teacher's needs clearly, resulting in their own program teachers not being satisfied, which is their own problem

Read on