Skip to content

jaeheonshim/smallprojects

Repository files navigation

Python This is a love tester that calculates the probability of a match between two people. Why did I make this? Because 7th grade. However, this is not your ordinary love tester. It can be configured to accept two names. When these two names are entered into the tester, it will always output a 100% chance. I just thought that would be a useful feature. Also, the names you configure in the code are masked by a simple cipher algorithm, so friends looking into your code won't accidentally discover your backdoor.

Java This program calculates prime numbers.

JavaScript This is a simple JavaScript function that returns true if the browser is blocking popups, and false if the browser allows popups.

Java This Java program generates numbers in the Fibonacci Sequence. The Fibonacci Sequence is a sequence of numbers where the next number in the sequene is the sum of the last two numbers (0, 1, 2, 3, 5, 8 ...). Simply enter the largest number you would like to increment to in the sequence as a variable in the code, and execute the code to have the Fibonacci Sequence printed in the console.

Java This is a fun console hangman game written in Java. The objective of the game is to guess the correct word in a limited number of tries or less. The number of tries can be customized in the program. Also, a custom word can be specified in the program, or it can be set to use a random word from a list of 800 words.

To specify options, edit the constructor from when the Hangman object is created in the main method.

  • Hangman("apple") will create a hangman game with the objective word set as apple.
  • Hangman("apple", 10) will create a hangman game with the objective word set as apple AND the number of tries set to 10 (Default is 7).
  • Hangman(true) will create a hangman game with a random objective word.
  • Hangman(true, 10) will create a hangman game with a random objective word and the number of tries set to 10.

PS - There isn't an actual hangman, I couldn't draw one in Unicode art. The program just tells you how many tries you have remaining.

Python This script is literally 9 lines of code that generate a random number between 1 and 6. The user can then choose whether they would like to generate another random number.

Java The Java class in this repository can be used to translate English into grammatically correct pig latin.

Pig Latin Rules

  • If a word starts with a consonant and a vowel, put the first letter of the word at the end of the word and add "ay."
  • If a word starts with two consonants move the two consonants to the end of the word and add "ay."
  • If a word starts with a vowel add the word "way" at the end of the word.

Examples
Pig Latin is hard to speak.
igpay atinlay isway ardhay otay eakspay.

Quick brown fox jumps over the lazy dog
uickqay ownbray oxfay umpsjay overway ethay azylay ogday

how much wood would a woodchuck chuck if a woodchuck could chuck wood owhay uchmay oodway ouldway away oodchuckway uckchay ifway away oodchuckway ouldcay uckchay oodway

Python This script converts normal english text to 1337 text. There are two modes, one where only the letters that make sense in 1337 speak are converted, and the other where all letters are converted.

Python This Python program uses the backtracking algorithm to solve a Sudoku puzzle.

About

Projects too small to warrant their own repositories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published