Coder Social home page Coder Social logo

calaiteam's Introduction

CalAiTeam

Won Top 3 Algorithm for Berkeley's AI competition (Multiagent Pacman)

Strategy

I used, of course, the minimax with alpha-beta pruning strategy for both agents, this relatively straightforward.

Offensive Agent (Or, the Greedy Guerilla Tactic):

Features:

  • current score
  • distance to ghost
  • distance to our territory
  • distance to nearest enemy food pellet
  • number of foods left
  • number of capsules left

Important:

The stroke of ingenuity that won the game in the end was the thought of alternating between emphasizing the distance to the next food pellet and the distance to our side of the board. Essentially, when the enemy ghost is less than 2 distances away from the pacman, I encourage it to run back to our side using a distance metric. Otherwise, it picks up whichever food pellet is closest.

Defensive Agent (Or, Shameless merciless Strategem)

Features:

  • distance to enemy pacman

Important:

Another lightbulb manifested when I made my defensive agent flaunt and dance near the border (fluctuating between 1 or 2 steps away from the center line). This angered the enemy and lured them to our side, putting them at the mercy of our defensive chomps. This solved the issue of both side’s agents frozen in stalemate at the front lines and also sometimes tricked the enemy’s defensive agents to suicide and respawn from the starting point as well, giving my pacman time to forage.

calaiteam's People

Contributors

yliu-code avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.