Files
PPCA-AIPacMan-2024/README.md
2024-06-25 11:42:57 +08:00

66 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PPCA-AIPacMan-2024
PPCA AI 吃豆人项目
本项目基于[加州大学伯克利分校的CS 188《Introduction to Artificial Intelligence》课程项目](https://inst.eecs.berkeley.edu/~cs188/sp24/projects/)
[http://ai.berkeley.edu](http://ai.berkeley.edu)
## Week 1
### 环境配置
推荐使用 [miniconda](https://docs.anaconda.com/miniconda/)
**创建虚拟环境**注意在创建时要指定python版本并且自己给环境命名
```cmd
conda create --name pacman python=3.9
conda activate pacman
```
**安装相关的工具包**
```
conda install pip
conda install numpy
conda install matplotlib
```
如果下载时间过长,可以使用
```cmd
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
```
指令加载清华源或其他镜像源作为下载路径。
### Python 基础
[推荐阅读](https://www.liaoxuefeng.com/wiki/1016959663602400)
相关文件在 [tutorial](https://github.com/ACMClassCourse-2023/PPCA-AIPacMan-2024/tree/main/tutorial) 文件夹下。
我们提供了一些小测试以供大家熟悉 Python
- 加法:阅读 `addition.py` 并补全代码。
- 给定水果价格和订单列表,计算总价:阅读 `buyLotsOfFruit.py` 并实现`buyLotsOfFruit(orderList)`函数。
- 计算最低总价:阅读 `shopSmart.py` 并补全 `shopSmart(orderList,fruitShops)` 函数。在 `shop.py` 中查看 `FruitShop` 类的实现。
运行 `python autograder.py` 会评估你对这三个问题的解决方案,运行 `python autograder.py -q q1` 将仅测试第一个问题。
### Pac-Man Agents
>你说的对,但是《吃豆人》是由南梦宫自主研发的一款全新街机游戏。游戏发生在一个被称作「迷宫」的幻想世界,在这里,被神选中的人将被授予「能量豆」,导引元素之力。你将扮演一位名为「吃豆人」的神秘角色,在自由的旅行中邂逅性格相同、能力一致的豆子们,和他们一起击败强敌,找回失散的豆子——同时,逐步发掘「吃豆人」的真相。
接下来,你将进入吃豆人的世界~
### Search
相关文件和介绍在 [search](https://github.com/ACMClassCourse-2023/PPCA-AIPacMan-2024/tree/main/search) 文件夹下。
## Week2
### MultiAgent
相关文件和介绍在 [multiagent](https://github.com/ACMClassCourse-2023/PPCA-AIPacMan-2024/tree/main/multiagent) 文件夹下。