Sha256: a9cf84ad72eb86509a6f9678fe3dbd06ba53e5bdcd49913e8816f6720a41ff79

Contents?: true

Size: 592 Bytes

Versions: 72

Compression:

Stored size: 592 Bytes

Contents

/**
* Here is an example solution for the SecretHandshake exercise
*/
component {

	function commands( input ) {
		var handshake = [];
		// 1
		if( bitMaskRead( input, 0, 1 ) ) {
			handShake.append( 'wink' );
		}
		// 10
		if( bitMaskRead( input, 1, 1 ) ) {
			handShake.append( 'double blink' );
		}
		// 100
		if( bitMaskRead( input, 2, 1 ) ) {
			handShake.append( 'close your eyes' );
		}
		// 1000
		if( bitMaskRead( input, 3, 1 ) ) {
			handShake.append( 'jump' );
		}
		// 10000
		if( bitMaskRead( input, 4, 1 ) ) {
			handShake = handShake.reverse();
		}
		return handShake;
	}
			
}

Version data entries

72 entries across 71 versions & 1 rubygems

Version Path
trackler-2.2.1.104 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.103 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.102 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.101 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.100 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.99 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.98 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.97 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.96 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.95 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.94 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.93 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.92 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.91 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.90 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.89 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.88 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.87 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.86 tracks/cfml/exercises/secret-handshake/Solution.cfc
trackler-2.2.1.85 tracks/cfml/exercises/secret-handshake/Solution.cfc