Mixed Messages Tarot Reading Game

Hello everybody :slight_smile:

It was very fun for me, now a I share my game to every friend and I’d love if you find it funny too.
Also it will be great to gain your feedback and questions!

It tooks 3 of 4 days to complete the task. First day took the js logic and messages, then 2 days for design and markup and 1 day to find perfect arts for my fun project.
Here’s the link: Tarot reading

Here’s the code for shuffle messages:

const shuffle = (array,num=3) => {
	let arrShuffle = array.slice();
	let currentIndex = arrShuffle.length, temporaryValue, randomIndex;

	while (0 !== currentIndex) {

		randomIndex = Math.floor(Math.random() * currentIndex);
		currentIndex -= 1;

		temporaryValue = arrShuffle[currentIndex];
		arrShuffle[currentIndex] = arrShuffle[randomIndex];
		arrShuffle[randomIndex] = temporaryValue;
	return arrShuffle.slice(0,num);
1 Like