# Dice Rolling competition results

I want a program that will let me calculate all the possible outcomes of the following scenario:

Player 1 rolls X dice with N sides each.

Player 2 rolls Y dice with N sides each.

The numerical result of the competition is an integer division of Player 1's total roll by Player 2's total roll. (higher results being a better outcome for Player 1)

I want to know the mean and median result of each X/Y/N combination within at least the range of 1-8 for X and Y and 1-20 for N. I want to be able to view a chart of every possible outcome. At the end of this description is a hand generated sample of some of what I want to see for X=2, Y=1, N=6.

It is only a guideline of the minimal information I want. I want it in a graphical interface. I want all of the charts for a given range of X/Y/N variables to be calculated at once so that they can be browsed on the fly. The source must be in well commented ANSI C or C++. The location of the function that calculates the results (a simple integer divide in this example) should be easily visible as it will be changed often.

* * *

Player 1 Total

2 3 3 4 4 4 5 5 5 5 6 6 6 6 6 7 7 7 7 7 7 8 8 8 8 8 9 9 9 9 10 10 10 11 11 12

1 2 3 3 4 4 4 5 5 5 5 6 6 6 6 6 7 7 7 7 7 7 8 8 8 8 8 9 9 9 9 10 10 10 11 11 12

2 1 1 1 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 5 5 5 5 5 6

P 3 0 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 4

2 4 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3

5 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2

6 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2

Result Occurences

0 20

1 79

2 45

3 23

4 13

5 9

6 6

7 6

8 5

9 4

10 3

11 2

12 1

Average Player 2 total: 3.5

Average Player 1 total: 7.0

Average Result: 2.56

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Something to put in the #2 spot on this list when I dont want an installer...

3) Complete ownership and distribution copyrights to all work purchased.

## Platform

The GUI should work in Windows, the complete source should compile under at least one major Win32 compiler, and the non-GUI portions of the source should compile under the GCC C or C++ compiler.

This should be an easy task, I will only be accepting bids for a day or until I get a really good one, whichever comes first. The delivery deadline is very short.

Квалификация: Программирование на С, Техника, MySQL, PHP, Архитектура ПО, Тестирование ПО

О работодателе:
( 0 отзыв(-а, -ов) ) United States

ID проекта: #2892683

## 10 фрилансеров(-а) в среднем готовы выполнить эту работу за \$16

codmanvw

See private message.

\$21.25 USD за 14 дней(-я)
(178 отзывов(-а))
6.8

See private message.

\$21.25 USD за 14 дней(-я)
(89 отзывов(-а))
6.7
ivantarsky

See private message.

\$17 USD за 14 дней(-я)
(76 отзывов(-а))
6.5
emesevw

See private message.

\$15.3 USD за 14 дней(-я)
(111 отзывов(-а))
4.4
ndnvw

See private message.

\$17 USD за 14 дней(-я)
(3 отзывов(-а))
2.1
kompooter

See private message.

\$10.2 USD за 14 дней(-я)
(3 отзывов(-а))
0.7
harpalvw

See private message.

\$14.45 USD за 14 дней(-я)
(1 отзыв)
0.0
tdk13

See private message.

\$17 USD за 14 дней(-я)
(0 отзывов(-а))
0.0
angusy

See private message.

\$12.75 USD за 14 дней(-я)
(1 отзыв)
0.0
licursi

See private message.

\$15.3 USD за 14 дней(-я)
(0 отзывов(-а))
0.0