- Main Page
- Classes
- Files

- File List

# C:/Users/Andreas Schiffler/Desktop/SVN/NewGamePhysics/MontyHallGame/MontyHallGameState.cs

    00001 ﻿//-----------------------------------------------------------------------------
    00002 // MontyHallGameState.cs
    00003 // (C) A. Schiffler, 2009-2011
    00004 //-----------------------------------------------------------------------------
    00005
    00006 namespace MontyHallGame
    00007 {
    00008     using System;
    00009     using NewGamePhysics.Physics;
    00010     using NewGamePhysics.Utilities;
    00011     using NewGamePhysics.Networking;
    00012     using NewGamePhysics.PhysicalElements;
    00013
    00018     public class MontyHallGameState
    00019     {
    00020         #region private_fields
    00021
    00025         private int losses;
    00026
    00030         private int wins;
    00031
    00035         private int switches;
    00036
    00037         #endregion
    00038
    00039         #region public_fields
    00040
    00044         PhysicalRandomNumberGenerator rng = new PhysicalRandomNumberGenerator(EntropySourceType.PlayTrulyRandom, "MontyHallGame_v1");
    00045
    00050         public double playTime;
    00051
    00052         #endregion
    00053
    00054         #region public_properties
    00055
    00059         public PhysicalRandomNumberGenerator Rng
    00060         {
    00061             get { return this.rng; }
    00062         }
    00063
    00067         public int Losses
    00068         {
    00069             get { return this.losses; }
    00070             set { this.losses = value; }
    00071         }
    00072
    00076         public int Wins
    00077         {
    00078             get { return this.wins; }
    00079             set { this.wins = value; }
    00080         }
    00081
    00085         public int Switches
    00086         {
    00087             get { return this.switches; }
    00088             set { this.switches = value; }
    00089         }
    00090
    00091         #endregion
    00092     }
    00093 }