GithubHelp home page GithubHelp logo

splendor-prolog-agent's Introduction

#Splendor playing intelligent agent ##implementation by Baris Palaska

This is the implementation of an agent that considers and handles the states just as humans does. It checks the cards on the board, nobles, its owned coins and development cards, then takes an action.

##How it works The actions that agent takes depends on the priorities. The priorities are decided based on the current state of the board and owned development cards.

On every step, the agent calculates the development card priorities by checking the nobles and its own development cards. The factors in this process are as followed;

• Calculation of the distance to nobles (Development cards required to obtain a noble) • The commonness of the gem color in nobles (if a color is present in multiple nobles, it is more valuable) • Negative feedback caused by having too many development cards from single color (generally it is better to have a more balanced development hand rather than being strong at a certain color)

At the end of these 3 processes and some operations, the agent obtains a priority list of development cards at that state. This priority list is later used in the calculation of the reward by buying each development card.

###Results of 100 Games vs Random agent alt text

splendor-prolog-agent's People

Contributors

palaska avatar

Watchers

 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.