Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
11-line Python version:
if __name__ == "__main__":
for i in range(1, 101):
s = ""
if not i % 3:
s += "fizz"
if not i % 5:
s += "buzz"
if s is not "":
print(s.capitalize())
else:
print(i)
I didn't. I made it this way:
Start with an empty string
If i is a multiple of 3, add "fizz"
If i is a multiple of 5, add "buzz"
In other words: if i is a multiple of both numbers, the string will also have both "fizz" and "buzz" in it.
23 lines in Vala.
public static int main (string[] args) {
string re;
for (int i = 1; i < 101; i++) {
re = "";
if (i % 3 == 0) {
re += "fizz";
}
if (i % 5 == 0) {
re += "buzz";
}
if...
So true, so true.
I'm working (or at least trying to work) on a map editor. I'm going to call it Teru-Sama.
But because I don't speak Delphi, looking at GoldMap's source is useless for me. So does anyone know a document about the map format?
I'm working on two projects, Pineapple and an unnamed one. I always start with maps.
For Píneapple I design the region as I map.
For the other one, I took a map of Johto from vgmaps.com, cut it in pieces, rearranged them until it started to look nice and then sticked with it. Then I paste my...
I support this thread!
I've recently started to learn hex editing... Just changing some random bytes around. My only true "discovery" so far is that changing 0x466 (in Yellow) from 28 ('G') into something else like 52 ('R') disables random battles in tall grass.
Spring 2002:
Not knowing how to save and thinking I got stuck in Elm's lab
I think there was no space between time and phone cards the first time I played it
Trying to get to the lake behind Cherrygrove
Talking to the strange tree near Violet
I think the second Slowpoke in Slowpoke Well was blue...
Some compilers (such as GCC) write this kind of "useless" stuff into the binary. I can tell lots of things about the original author just at opening it in a hex editor.
Well, not really. But now I know that it happens with GBA games too.