TextTwist

My clone of the popular word game (in Dutch and English) for Android, get it here: TextTwist Planned improvements:

Stuff

Mystery Code!

Can you tell me what this does? (code in Java)

	
	public static int Mystery(List numbers) {

		int xorme = 0;
		for (int n : numbers) {
			xorme ^= n;
		}

		int max = numbers.size() + 1;
		for (int i = max - (max % 4) ; i < max; i++) {
			xorme ^= i;
		}

		return xorme;
	}
	
	

Send your answers.

Contact