im fairly new to java and as my first assignment i need to simulate a MontyHall game using two classes. Door and MontyHall.
My main issue is with the class MontyHall. im having trouble simulating the selection of a random door and proceeding after that. Any help or hints to put me in the right direction would be much help.
import java.util.Random;
public class MontyHall {
  // ADD YOUR INSTANCE VARIABLES HERE
   private int door1; //door that holds the prize
   private int door2; //one of the remaining two doors that doesnt have a prize
   private int door3; //the last remaining door that doesnt have a prize
   private int door4; //a door that the user chooses
   Random generator = new Random();
  /** 
      * Initializes the three doors.
      */
   public MontyHall(){
 // REPLACE THE BODY OF THIS METHOD WITH YOUR OWN IMPLEMENTATION
     Door door1 = new Door("prizeDoor");
     Door door2 = new Door("hostDoor");
     Door door3 = new Door("finalDoor");
     Door door4 = new Door("selectedDoor");
   }
  /** 
      * Simulates one Monty Hall game.  
      * <ol>
      * <li>Resets all three doors</li>
   * <li>Simulates the selection of one of the doors by the player</li>
   * <li>Simulates opening of an empty door by the host</li>
   * <li>prints the outcome for switching and not switching door to standard output</li>
   * </ol>
      */
   public void oneGame(){
 // REPLACE THE BODY OF THIS METHOD WITH YOUR OWN IMPLEMENTATION
    int door1 = generator.nextInt(3)+1; //assign a value for door1
    System.out.println("The prize was behind door " + door1);
    while(door2 == door1){
      int door2 = generator.nextInt(3)+1; //assign a value for door2
    }
    while(door3 == door1 || door3 == door2){
      int door3 = generator.nextInt(3)+1; //assign a value for door3
    }
   if (((door4 == door1) && (Door.SelectedByPlayer() == true)) || ((door4 == door2) && (Door.SelectedByPlayer() == true))){
    System.out.println("Switching strategy would have lost");
   } else{
    System.out.println("Switching strategy would have won"); 
   }
   }
  /** 
      * Simulates a random selection of one of the three doors.
      * @return the door randomly selected  
      */
   private int pickADoor(){
 // REPLACE THE BODY OF THIS METHOD WITH YOUR OWN IMPLEMENTATION
     int door4 = generator.nextInt(3)+1;
     return this.door4;
     System.out.println("The player selected door " + door4);
   }  
 /** 
      * Simulates the opening of one of the other doors once the player selected one.
      * It should  open a door chosen randomly among the ones that don't have the prize and
      * that are not selected by the player
      * 
      *   @param prizeDoor the door that hides the prize
      *   @param selectedDoor the door that was selected by the player
      *   @return the door opened
      */
   private int openOtherDoor(int prizeDoor, int selectedDoor){
 // REPLACE THE BODY OF THIS METHOD WITH YOUR OWN IMPLEMENTATION
     prizeDoor = door1;
     selectedDoor = door4;
     if(selectedDoor == prizeDoor){
       int hostDoor = generator.nextInt(3)+1;
     }
     while(door2 != selectedDoor && door2 != prizeDoor){
       int door2 = generator.nextInt(3)+1;
     }
     return this.door2;
   System.out.println("The host opened door " + door2);
   }
 
     
    