src/Wheel.java
/*
	 * The wheel keeps sleeping until woken up for the maximum time is up, or
	 * either it was woken up prematurely by the operator as the maximum
	 * capacity of it's players has been reached
	 */
The wheel keeps sleeping until woken up for the maximum time is up, or
either it was woken up prematurely by the operator as the maximum
capacity of it's players has been reached
The wheel keeps sleeping until woken up for the maximum time is up or either it was woken up prematurely by the operator as the maximum capacity of it ' s players has been reached
public void run() {
		while (true) {
			Operator.appendToOutput("WHEEL<sleep>: Sleeping...", true);
			try {
				sleep(maxWaitTime);
				Operator.appendToOutput("WHEEL<starting>: Wait time is over", true);
				startRide();
			} catch (InterruptedException e) {
				if (this.onBoardPlayers.size() == 5) {
					Operator.appendToOutput("WHEEL<starting>: Maximum capacity reached", true);
					startRide();
				}
			}
		}
	}
public void run ( ) { while ( true ) { Operator . appendToOutput ( "WHEEL<sleep>: Sleeping..." , true ) ; try { sleep ( maxWaitTime ) ; Operator . appendToOutput ( "WHEEL<starting>: Wait time is over" , true ) ; startRide ( ) ; } catch ( InterruptedException e ) { if ( this . onBoardPlayers . size ( ) == 5 ) { Operator . appendToOutput ( "WHEEL<starting>: Maximum capacity reached" , true ) ; startRide ( ) ; } } } }
The wheel keeps sleeping until woken up for the maximum time is up, or
 either it was woken up prematurely by the operator as the maximum
 capacity of it's players has been reached
The wheel keeps sleeping until woken up for the maximum time is up or either it was woken up prematurely by the operator as the maximum capacity of it ' s players has been reached