コード例 #1
0
        public MarxPong_Engine(MarxPongModel marxPongModel)
        {
            this.marxPongModel = marxPongModel;
            marxPongCollision  = new MarxPong_Collision(this.marxPongModel);
            marxPongPhysics    = new MarxPong_Physics();

            resetBall          = true;
            isBallGoingForward = true;
        }
コード例 #2
0
ファイル: MarxPong_AI.cs プロジェクト: mmcc1/marxpongv2
        public MarxPong_AI(MarxPongModel _mpm, int _playernumber)
        {
            this.marxPongModel = _mpm;
            this.playerNumber  = _playernumber;

            gaParent1       = new Weights[7];
            gaParent2       = new Weights[7];
            nnWeights       = new Weights[7];
            hnOutput        = new double[6];
            shouldKeepValue = new bool[42];
        }
コード例 #3
0
        public Form1()
        {
            InitializeComponent();

            marxPongModel   = new MarxPongModel(1024, 768);
            marxPongEngine  = new MarxPong_Engine(marxPongModel);
            thread          = new Thread(marxPongEngine.StartEngine);
            runRealTime     = false;
            timer1.Enabled  = false;
            timer1.Interval = 30;
        }
コード例 #4
0
 public MarxPong_Collision(MarxPongModel marxPongModel)
 {
     this.marxPongModel = marxPongModel;
 }