Skip to content

BrantLauro/little-projects

Repository files navigation

Little Projects 🎯

Some Little Projects that I made just for fun

GitHub stars

GitHub followers

Project 1:

 __  __                    ____                   
|  \/  | ___  __ _  __ _  / ___|  ___ _ __   __ _ 
| |\/| |/ _ \/ _` |/ _` | \___ \ / _ \ '_ \ / _` |
| |  | |  __/ (_| | (_| |  ___) |  __/ | | | (_| |
|_|  |_|\___|\__, |\__,_| |____/ \___|_| |_|\__,_|
             |___/                                

A simple Mega-Sena numbers generator!

In Brazil we have a lottery called Mega-Sena organised by the Caixa Econômica Federal bank since March 1996. The draws of the Mega-Sena are held twice a week, on Wednesdays at 20:00 Brasilia time and Saturdays at 20:00 Brasilia time. The Wednesday draw is televised (with a 25-minute delay) on RedeTV at 20:25 of that day. The drawings consist of picking balls from 2 spinning spherical cages. They are picked in pairs, in order to form a 2 digit decimal number from 01 to 60. The first cage has balls ranging from 0 to 5 for the first digit, and the other one Passos balls ranging from 0 to 9 to be used in the second digit. In the event of the number 00 showing up, it will be replaced by the number 60 for Meu purposes. When 6 unique 2 digit numbers are drawn, the drawing is concluded.

font: https://en.wikipedia.org/wiki/Mega-Sena

So, I created a Python program to generate 6 diferent and random numbers from 01 to 60 that you can play in this lottery. Good Luck

Project 2:

 ____            _      ____                       
|  _ \ ___   ___| | __ |  _ \ __ _ _ __   ___ _ __ 
| |_) / _ \ / __| |/ / | |_) / _` | '_ \ / _ \ '__|
|  _ < (_) | (__|   <  |  __/ (_| | |_) |  __/ |   
|_| \_\___/ \___|_|\_\ |_|   \__,_| .__/ \___|_|   
                                  |_|              
 ____       _                        
/ ___|  ___(_)___ ___  ___  _ __ ___ 
\___ \ / __| / __/ __|/ _ \| '__/ __|
 ___) | (__| \__ \__ \ (_) | |  \__ \
|____/ \___|_|___/___/\___/|_|  |___/

A simple and classic Rock Paper Scissors versus the computer!

Rock paper scissors is a hand game usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are "rock", "paper", and "scissors".

  • Rock wins scissors
  • Paper wins rock
  • Scissors wins paper

font: https://en.wikipedia.org/wiki/Rock_paper_scissors

So, what you have to day is choose between the 3 objects and the pc will randon generate its choose and the program will say if you win, lose or tie.

Good luck and fun playing my game!

Project 3:

 _   _      _ _        __        __         _     _ _ 
| | | | ___| | | ___   \ \      / /__  _ __| | __| | |
| |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` | |
|  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| |_|
|_| |_|\___|_|_|\___/     \_/\_/ \___/|_|  |_|\__,_(_)
                                                      

A simple classic and pretty Hello World! XD

A "Hello, World!" program generally is a computer program that outputs or displays the message "Hello, World!". Such a program is very simple in most programming languages, and is often used to illustrate the basic syntax of a programming language. It is often the first program written by people learning to code. It can also be used as a sanity test to make sure that a computer language is correctly installed, and that the operator understands how to use it. While small test programs have existed since the development of programmable computers, the tradition of using the phrase "Hello, World!" as a test message was influenced by an example program in the seminal 1978 book The C Programming Language. The example program in that book prints "hello, world", and was inherited from a 1974 Bell Laboratories internal memorandum by Brian Kernighan, Programming in C: A Tutorial:

main( ) {
        printf("hello, world\n");
}

font: https://en.wikipedia.org/wiki/%22Hello,_World!%22_program

So, I made some updates on this simple and classic program to make it more pretty!

Project 4:

 __  __                    ____                    
|  \/  | ___  __ _  __ _  / ___|  ___ _ __   __ _  
| |\/| |/ _ \/ _` |/ _` | \___ \ / _ \ '_ \ / _` |  
| |  | |  __/ (_| | (_| |  ___) |  __/ | | | (_| |   
|_|  |_|\___|\__, |\__,_| |____/ \___|_| |_|\__,_| 
             |___/                                                   
 _____ _              ____ 
|_   _| |__   ___    / ___| __ _ _ __ ___   ___ 
| | | | '_ \ / _ \  | |  _ / _` | '_ ` _ \ / _ \ 
| | | | | | |  __/  | |_| | (_| | | | | | |  __/
| |_| |_| |_|\___|   \____|\__,_|_| |_| |_|\___|

A simple game where the pc randomize a Mega Sena Game and you try to guess it!

Like you count read in the text of the first project, Mega Sena is a Brazilian Lottery where you try to guess six diferent numbers between 1 and 60 an revice milions of Reais if you can hit all the 6 numbers.

So in this game you have to put 6 numbers that you think maybe the pc randomized and in the end the program shows the selected 6 numbers and says how many numbers you hited.

I hope you get fun playing this games and Good Luck!

Project 5:

  ____                     _                ____                      
 / ___|_   _  ___  ___ ___(_)_ __   __ _   / ___| __ _ _ __ ___   ___ 
| |  _| | | |/ _ \/ __/ __| | '_ \ / _` | | |  _ / _` | '_ ` _ \ / _ \ 
| |_| | |_| |  __/\__ \__ \ | | | | (_| | | |_| | (_| | | | | | |  __/
 \____|\__,_|\___||___/___/_|_| |_|\__, |  \____|\__,_|_| |_| |_|\___|
                                   |___/                              

A simple Guessing Game for fun! Pc randomize a number, you have to guess it...

A guess is a swift conclusion drawn from data directly at hand, and held as probable or tentative, while the person making the guess admittedly lacks material for a greater degree of certainty. A guess is also an unstable answer, as it is "always putative, fallible, open to further revision and interpretation, and validated against the horizon of possible meanings by showing that one interpretation is more probable than another in light of what we already know". In many of its uses, "the meaning of guessing is assumed as implicitly understood", and the term is therefore often used without being meticulously defined. Guessing may combine elements of deduction, induction, abduction, and the purely random selection of one choice from a set of given options. Guessing may also involve the intuition of the guesser, who may have a "gut feeling" about which answer is correct without necessarily being able to articulate a reason for having this feeling.

font: https://en.wikipedia.org/wiki/Guessing#Guessing_games

So, I made this pretty good and funny number guessing game, where the pc randomize a number from 1 to 100 and you have to guess now only if the number is lower or better than you guess!

Project 6:

 _____ _ _                                _ 
|  ___(_) |__   ___  _ __   __ _  ___ ___(_)
| |_  | | '_ \ / _ \| '_ \ / _` |/ __/ __| |
|  _| | | |_) | (_) | | | | (_| | (_| (__| |
|_|   |_|_.__/ \___/|_| |_|\__,_|\___\___|_|
                                            
 ____                                       
/ ___|  ___  __ _ _   _  ___ _ __   ___ ___ 
\___ \ / _ \/ _` | | | |/ _ \ '_ \ / __/ _ \ 
 ___) |  __/ (_| | |_| |  __/ | | | (_|  __/
|____/ \___|\__, |\__,_|\___|_| |_|\___\___|
               |_|                          

A simple Fibonacci Sequence I don't know for what!

In mathematics, the Fibonacci sequence is a sequence of whole numbers, usually starting with 0 and 1, in which each subsequent term corresponds to the sum of the previous two. The sequence was named after the Italian mathematician Leonardo de Pisa, better known as Fibonacci, who described, in the year 1202, the growth of a population of rabbits from this one. This sequence was, however, already known in antiquity.

The Fibonacci numbers are, therefore, the numbers that make up the following sequence:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, ...

The Fibonacci sequence has applications in financial market analysis, computer science and game theory. It also appears in biological configurations, such as the arrangement of tree branches or leaves on a stalk, in artichoke cone arrangement, pineapple cone arrangement, or fern unwinding.

font: https://pt.wikipedia.org/wiki/Sequ%C3%AAncia_de_Fibonacci

So I made this beautful Fibonacci Sequence for se some pretty numbers

Project 7:

  ___      _     _                       _   _____                     
 / _ \  __| | __| |___    __ _ _ __   __| | | ____|_   _____ _ __  ___ 
| | | |/ _` |/ _` / __|  / _` | '_ \ / _` | |  _| \ \ / / _ \ '_ \/ __|
| |_| | (_| | (_| \__ \ | (_| | | | | (_| | | |___ \ V /  __/ | | \__ \ 
 \___/ \__,_|\__,_|___/  \__,_|_| |_|\__,_| |_____| \_/ \___|_| |_|___/

A simple Odds and Evens game for fun!

Odds and evens is a simple game of chance and hand game, involving two people simultaneously revealing a number of fingers and winning or losing depending on whether they are odd or even, or alternatively involving one person picking up coins or other small objects and hiding them in their closed hand, while another player guesses whether they have an odd or even number. The game may be used to make a decision or played for fun.

The finger game is also known as swords, choosies, pick, odds-on poke, or bucking up. This zero-sum game, a variation of the ancient morra and par-impar, is played in Europe and the US, especially among children.

In Odds and Evens, however, individuals prepare by deciding who will be assigned odds and who will be evens. Then, one or both people say "One, two, three, shoot!" or "once, twice, three, shoot!" As the word "shoot" is said, the two people quickly and simultaneously thrust a fist into the center, extending either an index finger, or both the middle and index finger, indicating one number from 1 to 10. The sum total of fingers displayed is either odd or even. If the result is odd, then the person who called odds is the victor, and can decide the issue as they see fit. Often, the participants continue to shoot for a best two out of three.

font: https://en.wikipedia.org/wiki/Odds_and_evens_(hand_game)

So I created this Good Odds and Evens Game for you fun!

⚈ Download:

Click Here to download.

💻 Tech Stack:

The following tools were used in the construction of the project:

©️ Copyrights

Licensed with MIT.


LinkedIn Lauro Brant  ·  GitHub BrantLauro  ·  Twitter @BrantLauro  ·  Instagram @brantlauro  ·