Giter Site home page Giter Site logo

ninety-nine's Introduction

Ninety-Nine (Card Game) Strategy Simulator

This is a simulator for the card game Ninety-Nine. I was interested in finding the best strategy for the game and wanted an excuse to learn GoLang. I've made some strategies in the strategies folder. The strategies are in the form of json files, they work by looking at the current score and prioritizing some cards over others. I have also added the ability to use a priority list only if a dependency is filled, in this case the only dependency I have added it number of special cards in your hand. I have some plans for some more dependencies such as the current turn or how many turns it has been since the score went over a certain threshold. I also have plans to eventually make a self adjusting algorithm. This is the first project I have done in GoLang so my apologies if it is a little messy or suboptimal. Currently it takes about 375us to simulate 1 game with 12 players, it gets shorter if you have less players and longer if you have more. I am always looking to improve the efficiency so if you see something that could help improve the speed then let me know :)

Setup

This project requires GoLang 1.21 or higher so be sure you have it installed As long as you have GoLang 1.21 installed then you should be able to just download it and run it with the go run *.go command

ninety-nine's People

Contributors

michaelthomas0721 avatar

Watchers

 avatar

ninety-nine's Issues

Improve testing capabilities and data

  • Random Order for players
  • Random number of strategies
  • Allow auto picking strategies of a random amount to test a specific strategy
  • Stats on what strategies each strategy is best/worst against

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.