项目作者: trumae

项目描述 :
simple volleyball scoreboard simulator
高级语言: C++
项目地址: git://github.com/trumae/simvolei.git
创建时间: 2019-06-17T04:32:36Z
项目社区:https://github.com/trumae/simvolei

开源协议:MIT License

下载


MIT license
Build Status

Motivation

In a talk with my oldest son, I wanted to show how much the details are important in the volleyball games. Then i made an little test using a simple monte carlo simulation.

Features

  • Monte-Carlo simulation
  • Based only on single point probability

How it works

Based on probability of each team do only one point, an entire game was simulated n times.

Examples

50% team1 / 50% team2

  1. build git:(master) ./simvolei 0.5 100000
  2. [##################################################] 100% 0.818s
  3. Done! 49817 50183

51% team1 / 49% team2

  1. build git:(master) ./simvolei 0.51 100000
  2. [##################################################] 100% 0.82s
  3. Done! 60127 39873

55% team1 / 45% team2

  1. build git:(master) ./simvolei 0.55 100000
  2. [##################################################] 100% 0.744s
  3. Done! 90229 9771