Skip to content

FrancescoCastaldi/Secret_Santa_Couples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Secret_Santa_Couples

Secret Santa Random Couple

๐ŸŽ„ Secret Santa Gift Assignment Program

Overview

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.

Features

  • Interactive participant input
  • Random and fair gift assignment
  • Prevents self-gifting
  • Supports multiple participants
  • Emoji-enhanced console output

Prerequisites

  • Java Development Kit (JDK) 8 or higher
  • Console/Terminal for running the application

How to Run

  1. Compile the Java file:

    javac Main.java
  2. Run the program:

    java Main
  3. Follow the on-screen prompts:

    • Enter the number of participants
    • Input each participant's name
    • View the secret gift assignments

Program Workflow

  1. Input number of participants (minimum 2)
  2. Enter participant names
  3. Randomly generate gift assignments
  4. Display who gives a gift to whom
  5. Ensure no one gives a gift to themselves

Example Output

๐ŸŽ„ 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! ๐ŸŽ…

License

Open source. Feel free to use and modify.

Contributions

Pull requests are welcome! ๐ŸŽ

About

Secret Santa Random Couple

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages