Age: 104 Karma: 147 Posts: 1002 Gender:Female Location: you will be first against the wall pm | email
The premise of this programming competition is simple: all you need is a timer and a text editor. The timer should be precise to the nearest tenth of a second. I recommend this online stopwatch: https://www.estopwatch.net/ The text editor should be a plain text-only editor. You are not allowed to test your code!!! This means that you cannot use any fancy IDEs, as they may entice you to test your code. You must start the timer as soon as you finish reading the last word in the spoiler below.
Spoiler:
You must design a program in the programming language of your choice (or reasonable pseudocode). The program should print the numbers from 1 to 100. However, instead of numbers that are multiples of 3, it must print 'fizz' and instead of multiples of 5, it must print 'buzz'. For numbers that are multiples of both 3 and 5, it must print 'fizzbuzz'.
Stop the timer as soon as you finish writing the program. To submit your entry, post your time as well as the code you wrote. The person who can write a working form of the program in the shortest amount of time is the winner. GO
I call and raise: try to write a script that solves shapeshifter. Yes, th neopets game.
Currently, my friend Roee Sefi, has managed to do that and all by himself got to #3 on August's highscore list! I warmly congratulated him. This is an extremely difficult task.
@shos: Well, I was hungover and I forgot what symbol was used for modulo in Python. Otherwise I would easily hit the 2 minute mark.
Also, I now see I made a mistake. I forgot the colons in the If statements. I always forget those, but usually I have an IDE to tell me I'm an idiot. I'll edit that in and take a 1 minute penalty.
Age: 104 Karma: 147 Posts: 1002 Gender:Female Location: you will be first against the wall pm | email
i was about to point that out but i assumed it could be a special case in python syntax, like how in java you're allowed to omit the curly braces for a block consisting of a single line. but props to you for creating an output variable instead of creating a new case for n%15 (or n%3 and n%5). apparently it is also possible to write the program as a one-liner but i am not too interested in one-liners or the pythonista obsession with 'pythonic' code.
Writing pythonically is super important HB, and you'll know that as soon as you actually start working in a GROUP. When you do something, you can get along well always cuz you know what you've done. Even then, after 3 years of not touching the code you may have trouble if you didn't write pythonically. But if you're in a group - then each one makes changes in the code, and you literally cannot work efficiently if you always need to start thinking what the hell did my lad write here.
Age: 104 Karma: 147 Posts: 1002 Gender:Female Location: you will be first against the wall pm | email
Well my inability to deal with other people's code is probably one of the top reasons that I'm not studying CS, but yeah I definitely agree that I need to work on that
But if you're in a group - then each one makes changes in the code, and you literally cannot work efficiently if you always need to start thinking what the hell did my lad write here.
You write code with your lad? No wonder you thought 4 minutes was fast.
Anyway Shos, I'll get to your challenge once I bother to learn the rules to Shapeshifter. Modeling games and optimizing strategies has always been a hobby of mine.
Anyway Shos, I'll get to your challenge once I bother to learn the rules to Shapeshifter. Modeling games and optimizing strategies has always been a hobby of mine.
One friend of mine has successfully solved the game. He also did it well enough to get the gold trophy on Neopets, lol.