Skip to content

rykuss/2PacTourney

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacman Capture the Flag: Team 2Pac

Screenshot

The tournament was taken from the final project of UC Berkeley's CS 188 Artificial Intelligence class and used in our respective class at UC Santa Cruz. Overall, it involves a multi-player capture-the-flag variant of Pacman, where agents control both pacman and ghosts in coordinated team-based strategies. The premise is for a team to eat the food on the far side of the map, while defending the food on its home side.

For 10 days this tournament was run every night at 10pm, where each team in the class competed against every other team in a round-robin fashion. Results were automatically uploaded to a webpage around 3am. Our team name: 2Pac.

Notes:

Branch Description
master Contains provided/unmodified code.
development Copy of master (remains unused).
stephen Used for my working code. Contains final submitted code
yona Used for Yona's working code. (similar to stephen branch).
yona-patch1 Used for Yona's testing of new/potential strategies.
  • Summary of how we represented the problem, our computational strategies, obstacles we faced, and the "methods to our madness" (or so to speak):
  • File containing our team's agent code/the only file we submitted--link goes to a different branch:
  • Overview of the tournament rules and given code:
  • Check the other branches for our work.

A few handy commands:

  • Run a basic game:
    • python capture.py
  • Run game with specified Red and Blue teams (our algorithm as the red team, baseline/default as the blue team):
    • python capture.py -r myTeam -b baselineTeam
  • Run game controlling agent0 with arrowkeys, random seeded layout 5, & time 2400:
    • python capture.py --keys0 -l RANDOM5 -i 2400
  • Run game replay from .rec file:
    • python capture.py --replay=<filename>
  • Get list/info of all options and comands:
    • python capture.py --help

About

Pacman Capture the Flag Tournament

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.8%
  • HTML 10.2%