• New TOR Mirror: suicidffbey666ur5gspccbcw2zc7yoat34wbybqa3b
    oei6bysflbvqd.onion

  • Hey Guest,

    If you want to donate, we have a thread with updated donation options here at this link: About Donations

whatevs

whatevs

Mining for copium in the weirdest places.
Jan 15, 2022
2,914
This game is open for everyone but if you can't code you will likely be unable to play.

RULES:

1. We post a simple program, that can't be longer than 20 lines. Use screenshots.
2. We can only post a program if we (or someone else) have guessed correctly or mostly correctly what the code of the last poster does and he/she gives the OK to the guess.
3. We specify the language at the header.

STARTING PROGRAM ~ python

1644263955162
 
Last edited:
  • Like
  • Love
Reactions: WrongPlaceWrongTime, Al Cappella, Angi and 6 others
botanormal

botanormal

Mage
Nov 9, 2020
550
I've spent about 20 minutes trying to understand this, I'm clueless :pfff:
But to take a guess... this will show how many days of the year/week you're sad?
It takes a random number between 1 & 100 and it's like... the likelihood you will be sad on each of the days?
I just want to know the answer now, my brain is exploading lol, this was fun though!!

Confused Thinking GIF
 
  • Yay!
  • Hugs
  • Love
Reactions: LastFlowers, Weeping Garbage Can, Dead Meat and 2 others
Midgardsorm

Midgardsorm

Paragon
Apr 28, 2020
918
This game is open for everyone but if you can't code you will likely be unable to play.

RULES:

1. We post a simple program, that can't be longer than 20 lines. Use screenshots.
2. We can only post a program if we have guessed correctly or mostly correctly what the code of the last poster does and he/she gives the OK.
3. We specify the language at the header.

STARTING PROGRAM ~ python

View attachment 85823

Hmm I was off coding for a time.

Is this supposed to calculated the probability of being sad from 1~100 on 365 loops and then print how many sad days you will have?
 
  • Love
  • Like
Reactions: LastFlowers, Dead Meat, whatevs and 1 other person
settheory

settheory

Bundle of perceptions
Jul 29, 2021
457
For each day of the week, you input the chance of being sad at this day. Then the program calculates, for each day of the week, how many of those particular days (mondays, tuesdays...) will be sad throughout the year, based on those probabilites.
Or something.
 
  • Love
  • Like
  • Yay!
Reactions: Un-, Dead Meat, botanormal and 2 others
Sanva

Sanva

:/
Dec 10, 2021
261
this is a really fun idea until someone posts a simple, 20 lines long program in machine code
 
  • Like
  • Yay!
  • Love
Reactions: Quiet Desperation, Al Cappella, WrongPlaceWrongTime and 5 others
Midgardsorm

Midgardsorm

Paragon
Apr 28, 2020
918
this is a really fun idea until someone posts a simple, 20 lines long program in machine code
Aww I was just ready to write a simple print command .....in assembly ^^
 
  • Yay!
  • Love
  • Like
Reactions: WrongPlaceWrongTime, Dead Meat, botanormal and 2 others
whatevs

whatevs

Mining for copium in the weirdest places.
Jan 15, 2022
2,914
I've spent about 20 minutes trying to understand this, I'm clueless :pfff:
But to take a guess... this will show how many days of the year/week you're sad?
It takes a random number between 1 & 100 and it's like... the likelihood you will be sad on each of the days?
I just want to know the answer now, my brain is exploading lol, this was fun though!!

Confused Thinking GIF
That's very good guess and also the first, I shall declare a temporary winner. Perhaps I can change the rules so that anyone can guess (without needing to post a program later) and until one guess isn't chosen a new program can't be posted by someone else.
 
  • Love
  • Like
Reactions: LastFlowers, Sanva, Midgardsorm and 2 others
settheory

settheory

Bundle of perceptions
Jul 29, 2021
457
  • Wow
  • Aww..
Reactions: Midgardsorm and whatevs
whatevs

whatevs

Mining for copium in the weirdest places.
Jan 15, 2022
2,914
If you feel sadistic and/or masochistic, you can write in something from here https://esolangs.org
Here are some of my top picks:

There is a guy that sits left to me in class and is often solving mathematical problems with another specialized language and software like that one. I feel like anyone else reading code when I have a glimpse at wtf he might be doing: "I don't understand that, I will never understand that and I will never want to understand that".

Btw, this page has a great spell-checker.
 
  • Yay!
  • Like
Reactions: LastFlowers and settheory
Midgardsorm

Midgardsorm

Paragon
Apr 28, 2020
918
If you feel sadistic and/or masochistic, you can write in something from here https://esolangs.org
Here are some of my top picks:

lol this one...

And I thought my Statistic Analysis classes using NumPy were difficult.
 
A

Angi

Specialist
Jan 4, 2022
305
This game looks like fun!

I think this is depressed code! First of all, it causes the computer running it to ruminate, given that it loops as long as "i" does not increase past 365, and i never increases, so the loop will either run forever, or not even start, if the the random value i starts with is larger than 365. If we added a that i starts at 1 and increases with each loop, (or python does that for you, in which case the program is not quite as depressed as I initially thought) the program will print the number of mondays in a year starting with a monday (53) multiplied with the number you entered in the beginning, divided by 100, so effectively the number of mondays you will most likely be sad in a year, if you are sad with the entered probability. Then it will print the number of sad tuesdays (still in a year that starts with a monday) and continue to do so all the way to your sad sundays in a year that starts with a monday.

Or rather, I will approximate the number by Monte-Carlo, I am not sure how accurate the result will be for 365/7 tries, my gut feeling is it will still have some randomness to it, but my gut is shit, so I would have to test it ;) I love Monte-Carlo, it always makes me think of a monkey throwing darts at pie!
 
  • Yay!
Reactions: whatevs
whatevs

whatevs

Mining for copium in the weirdest places.
Jan 15, 2022
2,914
This game looks like fun!

I think this is depressed code! First of all, it causes the computer running it to ruminate, given that it loops as long as "i" does not increase past 365, and i never increases, so the loop will either run forever, or not even start, if the the random value i starts with is larger than 365. If we added a that i starts at 1 and increases with each loop, (or python does that for you, in which case the program is not quite as depressed as I initially thought) the program will print the number of mondays in a year starting with a monday (53) multiplied with the number you entered in the beginning, divided by 100, so effectively the number of mondays you will most likely be sad in a year, if you are sad with the entered probability. Then it will print the number of sad tuesdays (still in a year that starts with a monday) and continue to do so all the way to your sad sundays in a year that starts with a monday.

Or rather, I will approximate the number by Monte-Carlo, I am not sure how accurate the result will be for 365/7 tries, my gut feeling is it will still have some randomness to it, but my gut is shit, so I would have to test it ;) I love Monte-Carlo, it always makes me think of a monkey throwing darts at pie!
Hahaha, do you want to go next? šŸ˜
 
A

Angi

Specialist
Jan 4, 2022
305
I have been trying to come up with something since Tuesday. But I have not been able to code for months -_- I think your code reflects your mind, and mine is currently pieces of broken glass in boiling soup. Sorry.
 
  • Hugs
Reactions: LastFlowers and whatevs
whatevs

whatevs

Mining for copium in the weirdest places.
Jan 15, 2022
2,914
I have been trying to come up with something since Tuesday. But I have not been able to code for months -_- I think your code reflects your mind, and mine is currently pieces of broken glass in boiling soup. Sorry.
Anything goes. Let's get this thread moving. Post five lines. I will probably post another program if nobody tries to participate. I think the idea is fun. Is not about who writes the most impressive program or anything, this isn't stackoverflow, hahaha.

I was preparing for a Python exam when I did the opening statement. I did really well, btw!
 
Last edited:
  • Like
Reactions: Angi
A

Angi

Specialist
Jan 4, 2022
305
Ok. I think it says somewhere in this thread that I do not haaave to post a new program, but I did my current best. Not impressive, though :ahhha: Maybe it helps get my head together again!

The second program is also in python:


import random

effort = string(input("Which efforts to improve your life did you make today?"))

if random.randint(0, 1000) == 97
print("You achieved something today.")
else
print("You are still full of shit, no matter what you do.")



Edit: Turns out posting removes the tabs. this makes it somewhat harder to read, sorry!
 
  • Like
Reactions: whatevs
whatevs

whatevs

Mining for copium in the weirdest places.
Jan 15, 2022
2,914
Hahaha, it seems that achieving something is very hard after all, no? Good call.
 
  • Yay!
Reactions: Angi

Similar threads

TheLastGreySky
Replies
9
Views
350
Offtopic
TheLastGreySky
TheLastGreySky
DrJ
Replies
2
Views
135
Offtopic
DrJ
DrJ
itsneverbeenmoreove
Replies
8
Views
605
Suicide Discussion
Whale_bones
Whale_bones
Onelegman
Replies
10
Views
377
Suicide Discussion
Onelegman
Onelegman
goodoldnoname923
Replies
5
Views
240
Suicide Discussion
lost_ange2211
lost_ange2211