Example #1
0
 public Player(int y,int _screen)
 {
     SCREEN = _screen;
     startY = y;
     posY = y;
     destPosY = y;
     //START_POSITION_Y = 100 * 4 + 45;
     playerLog = new List<string>();
     AI = new DFSAgent(playerLog);
     Score = ((y + 1) * (y + 1)) * 2;
     arrows = 1;
 }
Example #2
0
 // DMC added below..................
 /// <summary>
 /// New constructor with a fast player speed for quicker learning trials.
 /// </summary>
 /// <param name="y">player starting y position</param>
 /// <param name="_screen">_screen</param>
 /// <param name="fastSpeed">faster speed</param>
 public Player(int y, int _screen, int fastSpeed)
 {
     SCREEN = _screen;
     startY = y;
     posY = y;
     destPosY = y;
     //START_POSITION_Y = 100 * 4 + 45;
     if (playerLog == null) { playerLog = new List<string>(); }
     AI = new QLearningAgent();
     Score = ((y + 1) * (y + 1)) * 2;
     arrows = 1;
     try
     {
         if (fastSpeed > 0) Player_Speed = fastSpeed;
     }
     catch
     {
         Player_Speed = PLAYER_SPEED;
     }
 }