Giter Site home page Giter Site logo

splendor-clone's Introduction

splendor-clone

This is a prolog implementation of the card game Splendor.

In order to be able to play this game, you need to implement your own agents or you can use the human interface. There is also a random bot included.

You can modify agents.pl in order to specify which agents are going to play the game.

You can use the human interface via the command line. At every turn, the framework will ask you your action.

Actions consist of action types and action parameters. Action types are 1, 2 and 3 for taking tokens, purchasing development cards and, reserving cards respectively.

Action parameter for taking tokens is [c{1}, c{2}, c{3}, c{4}, c{5}] where c{i} are the number of tokens you are willing to take.

Action parameter for purchasing cards is [Tier, Position, [c{1}, c{2}, c{3}, c{4}, c{5}, c{6}]] where Tier, Position denote the card and Tokens are the tokens you are offering in order to purchase the card.

Action parameter for reserving a card is [Tier, Position] which specifies the card you are willing to reserve.

You can launch the game by starting the prolog session, consulting(framework), typing "go.".

Humans and agents use the same method for giving commands to the frame.

splendor-clone's People

Contributors

mrtysn avatar

Stargazers

Douglas R. Miles avatar

Watchers

Douglas R. Miles avatar James Cloos 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.