public MarxPong_Engine(MarxPongModel marxPongModel) { this.marxPongModel = marxPongModel; marxPongCollision = new MarxPong_Collision(this.marxPongModel); marxPongPhysics = new MarxPong_Physics(); resetBall = true; isBallGoingForward = true; }
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]; }
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; }
public MarxPong_Collision(MarxPongModel marxPongModel) { this.marxPongModel = marxPongModel; }