Draft

Casino Roulette

Description
Loading description...
Fundamentals
View
AllIssues8QuestionsSuggestions5Show Resolved
  • Please sign in or sign up to leave a comment.
  • arthur2001 Avatar

    I think it would be useful to specify that it is the 'European Roulette Wheel' which is being used in this problem. Also specifying the numbers for black and red:- BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36]

    This provides a solid base for the solution. Other than that, I thought it was an excellent kata. I hope eladkap and others may find this comment useful.

  • dfhwze Avatar

    Improve test case logging. This means nothing:

    Log
    Test result: True
    
  • B1ts Avatar

    Player Choices on the Board

    This section seems redundant and should be removed. (also it's missing BLACK, RED choices)

  • Mercy Madmask Avatar

    You put 15 in the BLACKS in your solution but it's in REDS in the preloaded.
    This fails random tests here and there.

  • FArekkusu Avatar

    Having multiple different output types is bad.

  • FArekkusu Avatar

    Having multiple different input types is bad.

  • mauro-1 Avatar

    Usually EVEN includes only 2,4,..,36 (not 0).

    Description should specify whether EVEN includes 0.

  • mauro-1 Avatar

    'RED' and 'BLACK' should be listed in "Player Choices on the Board"

  • mauro-1 Avatar

    According to wikipedia 15 should be black, not red.

  • FArekkusu Avatar

    Payouts for black/red numbers are not listed in the description.

  • FArekkusu Avatar

    The function should return one of the followings: 'Total winnings: [total]' - when the player has won and is paid...

    The expected result is a number, not string.

  • FArekkusu Avatar

    Tests shouldn't log anything.

  • FArekkusu Avatar

    The function should return one of the followings: 'No bets' - when bets list is empty...

    Fourth Example - The bets are: [] - The output should be "No winnings."

  • JohanWiltink Avatar

    Please use appropriate datatypes.

    "Winnings" can just be a positive number; "No winnings" could just be number 0; there is no reason to special case "No bets" ( and example 4 doesn't !! ); "Not enough money" should throw an error.

    Strings are always suspect, and very often just plain wrong.