5 kyu

Game - Electrons around the cores

306 of 1,088ineiti

Description:

Have you heard of the game "electrons around the cores"? I'm not allowed to give you the complete rules of the game, just so much:

  • the game is played with 4 to 6 dice, so you get an array of 4 to 6 numbers, each 1-6
  • the name of the game is important
  • you have to return the correct number five times in a row and your solution is considered to be correct

If you just press "submit", you'll get an array and the expected value!

Here are some input/output pairs for you to wrap your mind around:

  • [ 1, 2, 3, 4, 5 ] -> 6
  • [ 2, 2, 3, 3 ] -> 4
  • [ 6, 6, 4, 4, 1, 3 ] -> 2
  • [ 3, 5, 3, 5, 4, 2 ] -> 12

And yes, it is a shameless copy of a famous game.

Reverse Engineering
Games
Puzzles
Riddles

Similar Kata:

Stats:

CreatedAug 30, 2013
PublishedAug 30, 2013
Warriors Trained4314
Total Skips1293
Total Code Submissions13794
Total Times Completed1088
Ruby Completions306
JavaScript Completions420
Python Completions326
Rust Completions61
Factor Completions13
COBOL Completions8
Go Completions25
Total Stars67
% of votes with a positive feedback rating69% of 165
Total "Very Satisfied" Votes98
Total "Somewhat Satisfied" Votes32
Total "Not Satisfied" Votes35
Ad
Contributors
  • ineiti Avatar
  • jhoffner Avatar
  • Azuaron Avatar
  • Blind4Basics Avatar
  • booniepepper Avatar
  • monadius Avatar
  • user8436785 Avatar
  • akar-0 Avatar
  • Kacarott Avatar
Ad