thinksource / urge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

running enviroment

python 3.6 or python 3.7

How to run:

windows:

python main.py

linux

python3 main.py

About the directions:

The array and directions is as fellow example:


	0	1	2	3	4	X direction

0	x	x	x	x	x

1	x	x	x	x	x

2	x	x	x	x	x

3	x	x	x	x	x

4	x	x	x	x	x

Y
d
i
r
e
c
t
i
o
n

additional setting

  1. the pcman only first time pass the map will get coins. the next time it would just get 0 coins
  2. the start step will get coins without any moving.

Unit testing

python mainunit.py
  1. testing for step class TestStep
  2. testing for whole class TestPacMan

About


Languages

Language:Python 100.0%