Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jenspapenhagen/pigmess

Online Calucator for the boardgame Schweinerei
https://github.com/jenspapenhagen/pigmess

java lambda-functions mircoservice quarkus

Last synced: 1 day ago
JSON representation

Online Calucator for the boardgame Schweinerei

Awesome Lists containing this project

README

        

# pigmess
Online Calucator for the game of dice "Schweinerei"

The english Wikipedia:
https://en.wikipedia.org/wiki/Pass_the_Pigs

![Plastikschweine, die als Würfel benutzt werden.](/images/Pig_dice.jpg?raw=true "Plastikschweine, die als Würfel benutzt werden.")
by Arjan Verweij - http://membres.lycos.fr/arjan/

NEW DATASET:

DOI: [10.1080/10691898.2006.11910593](https://doi.org/10.1080/10691898.2006.11910593)


Raw frequencies

|Black Pig Position|(Dot Up) |(Dot Down) |(Trotter)|(Razorback)|(Snouter)|(Leaning Jowler)|
|------------------|--------------------------------|---------------------------|----------|-----------|---------|----------------|
|**(Dot Up)** |573 |656 |139 |360 |56 |12 |
|**(Dot Down)** |623 |731 |185 |449 |58 |17 |
|**(Trotter)** |155 |180 |45 |149 |17 |5 |
|**(Razorback)** |396 |473 |124 |308 |45 |8 |
|**(Snouter)** |54 |67 |13 |47 |2 |1 |
|**(Leaning Jowler)**|10 |10 |0 |7 |1 |1 |

(hint: these are only 5977 dice rolls, the missing result from 23 dice rolls are resulted in the two pigs touching each other)

OLD DATASET:

Es wurde zur Berechnung der Wahrscheinlichkeiten auf die Datengrundlage von:
„Schweinereien“ – Grundschüler untersuchen einen asymmetrischen Zufallsgenerator
SANDRA SCHNABEL, MARBURG & BERND NEUBERT, GIESSEN
zugegriffen.
![Screenshot](/images/schweinewahrscheinlichkeit.png?raw=true "Screenshot aus dem Paper.")

Zum Starten:

```bash
./mvnw compile quarkus:dev
wget --header="Content-Type: text/json" http://localhost:8080/pigmess
```

For getting this Response
```json
{
"points":1,
"rollFirst":"FEEDS_UP",
"rollSecond":"LAY_RIGHT"
}
```