Coder Social home page Coder Social logo

truelgamestrategy's Introduction

The Truel Problem

Console application to analyze the effectiveness of different strategies of Truel game.

Imagine that you have a three-way duel (or “truel”). The three duelists are named A, B, and C and have accuracy probabilities of a, b, and c with 0 < a < b < c < 1. The rules of the duel are that the duelists fire sequentially in the starting order A, B, C (so the least accurate person fires first, etc., and continuing to fire in that order) and the last person standing wins the duel. If you are duelist A, what strategy should you use to maximize your chance of winning?

Common Strategy Choices

If you ask most people what A’s strategy should be when all 3 duelists are alive, there are two common answers:

  1. Always fire at the most accurate duelist (C).
  2. Fire randomly (since you are the least accurate it doesn’t matter). To this we’ll add what seems like a bad option:
  3. When there are more than two players in the game, fire your shot into the ground, wasting it, otherwise fire on the remaining player.

truelgamestrategy's People

Contributors

petrjanikac avatar

Watchers

 avatar

Forkers

romanrousac

truelgamestrategy's Issues

First touch issue

This is first issue created in cloned repository TruelGameStrategy.

Screen1

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.