Secret Santa Random Couple
This Java program helps organize a Secret Santa gift exchange by randomly assigning gift givers and receivers while ensuring no one gives a gift to themselves.
- Interactive participant input
- Random and fair gift assignment
- Prevents self-gifting
- Supports multiple participants
- Emoji-enhanced console output
- Java Development Kit (JDK) 8 or higher
- Console/Terminal for running the application
-
Compile the Java file:
javac Main.java
-
Run the program:
java Main
-
Follow the on-screen prompts:
- Enter the number of participants
- Input each participant's name
- View the secret gift assignments
- Input number of participants (minimum 2)
- Enter participant names
- Randomly generate gift assignments
- Display who gives a gift to whom
- Ensure no one gives a gift to themselves
๐ Numero di partecipanti: 4
๐ฅ Nome partecipante 1: Mario
๐ฅ Nome partecipante 2: Luigi
๐ฅ Nome partecipante 3: Anna
๐ฅ Nome partecipante 4: Elena
๐ Abbinamenti Segreti:
๐ฎ Mario regala a Elena
๐ฎ Luigi regala a Mario
๐ฎ Anna regala a Luigi
๐ฎ Elena regala a Anna
๐ Tanti auguri! ๐
Open source. Feel free to use and modify.
Pull requests are welcome! ๐