Giter Site home page Giter Site logo

secret-santa's Introduction

Secret-Santa

A tool to assist in the secret santa process without much hassle.

Execute either the .exe executable OR compile and run the main.cpp file yourself.

Add the amount of people participating in the Secret Santa process (more than 2 people and of course different names).

After you enter each name, the same amount of files will be created in the respective directory where the program was executed. Each file has the name of a person who particiapted and inside each file is the name of the person whom they are going to get a gift for. Simply send the file without opening it to its respective owner and only open the file with your name in.

-------------------------------------------------------How it works------------------------------------------------------------

The process works by creating 2 string arrays with all the names, then creating a file for each cell in the first array and writing a random name in that file from the second array. The name is then deleted from the second array and the process continues until everyone has been assigned a secret santa!

The default file format is .txt but that can change from the core file if you want. Enjoy!

secret-santa's People

Contributors

xg-pro avatar

Stargazers

 avatar

Watchers

 avatar

secret-santa's Issues

No selectable paths

Although an option for editing the format of the files can be added, it is discarded as a .txt is simple and enough for everyone. However, it is a bit of a pressing matter creating every file in the same directory as the executable instead of selecting your own path. As I have limited knowledge on the matter (if any at all), and as the "project" is small and simple, I have not yet added this possibility.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.