44 lines
		
	
	
		
			801 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			801 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f4391000cf542c50ff4c
 | |
| title: 'Problem 205: Dice Game'
 | |
| challengeType: 5
 | |
| forumTopicId: 301846
 | |
| ---
 | |
| 
 | |
| # --description--
 | |
| 
 | |
| Peter has nine four-sided (pyramidal) dice, each with faces numbered 1, 2, 3, 4.
 | |
| 
 | |
| Colin has six six-sided (cubic) dice, each with faces numbered 1, 2, 3, 4, 5, 6.
 | |
| 
 | |
| Peter and Colin roll their dice and compare totals: the highest total wins. The result is a draw if the totals are equal.
 | |
| 
 | |
| What is the probability that Pyramidal Pete beats Cubic Colin? Give your answer rounded to seven decimal places in the form 0.abcdefg
 | |
| 
 | |
| # --hints--
 | |
| 
 | |
| `euler205()` should return 0.5731441.
 | |
| 
 | |
| ```js
 | |
| assert.strictEqual(euler205(), 0.5731441);
 | |
| ```
 | |
| 
 | |
| # --seed--
 | |
| 
 | |
| ## --seed-contents--
 | |
| 
 | |
| ```js
 | |
| function euler205() {
 | |
| 
 | |
|   return true;
 | |
| }
 | |
| 
 | |
| euler205();
 | |
| ```
 | |
| 
 | |
| # --solutions--
 | |
| 
 | |
| ```js
 | |
| // solution required
 | |
| ```
 |