Tech Off Post

Single Post Permalink

View Thread: Yet another C# dice question.
  • User profile image

    Matthew van Eerde wrote:
    I think the key is to think about how you determine who has the most dice with the same value, breaking it down into small enough steps that you can explain it to someone over the phone.

    (The ultimate goal is to explain it to a computer, which is much harder.)

    In my sample I got him to datatable in a non here is my 100 line main function implementation of the whole program Smiley From there he can query it however he likes to decide on breaking ties, what ranges count, etc. If he was particulairly clever he can hide the results table and have the game object decide the winner or create a game manager that gets passed the results.