/pacman-contest-replay-player

Pacman Contest Replay Player

Primary LanguagePython

pacman-contest-replay-player

A script to make it easier to play Pacman contest replays.

Please make sure you have the latest capture changes from Sebastian: https://piazza.com/class/kbsmlzxg3k7418?cid=225 (@225).

Configuration

The python command can be changed in the script, as well as the path to the replays folder.

By default the script looks for replays in the replays folder and runs the capture.py script by calling python.

Usage

For example usage

python replay-player.py --help

Running the script without any parameters will just return all files in the replays folder specified with their corresponding id

python replay-player.py

You can filter by a team OR by two teams by using the -t or -teams flag. Note this flag is completely optional.

python replay-player.py --team TEAM1

python replay-player.py --team TEAM1 TEAM2

Afterwards you can select a replay ID by using the -n or --number flag

python replay-player.py --team TEAM1 -n 1

python replay-player.py --team TEAM1 TEAM2 -n 1

python replay-player.py -n 1

Step size can also be specified using the -s or --delay-step flag

python replay-player.py --team TEAM1 TEAM2 -n 1 -s 0

Notes

You may want to add the replays folder to your .gitignore. You can do this by adding replays/ to your .gitignore file.