Git Product home page Git Product logo

briscolol's Introduction

A set of functions that allows for the high-repetition simulation of two AIs playing the card game Briscola. Uses the Python built-in modules along with scipy, numpy, and pandas.

AIs are located in AI.py, along with necessary methods per AI class.

A quick demonstration of how to use the main simulation function can be found in test.py, but briefly:

  • Create multiple variables, each which is assigned an AI class
  • Create two lists, one which holds all AIs designated as Player 1 (goes first), and the other for all Player 2 AIs (goes second)
  • Run the main pipeline with: main_pipeline(Player_1_list, Player_2_list, Number_of_games_per_matchup). For reference, on a machine with 16GB of RAM and a clock speed of 3.7GHz, a 100,000 game simulation took ~10 seconds on average.
  • Examine the output, available as:
    • Raw output (a record of all games played, available both as a tabulated dataset or Pythonic list)
    • Pre-analysed tabulated output (a tabulated dataset of win/loss/tie matrices, or matchup charts)

briscolol's People

Contributors

michael-nakai avatar

Watchers

 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.