HomeTown Forums
ask a stupid question, get a stupid answer - Printable Version

+- HomeTown Forums (https://hometownmc.com:443/forums)
+-- Forum: General (https://hometownmc.com:443/forums/forumdisplay.php?fid=3)
+--- Forum: Forum Games (https://hometownmc.com:443/forums/forumdisplay.php?fid=8)
+--- Thread: ask a stupid question, get a stupid answer (/showthread.php?tid=29)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


RE: ask a stupid question, get a stupid answer - Penguin - 08-12-2016

(08-12-2016, 04:54 PM)Rasse82 Wrote: When is tomorrow when it is yeserday?

[Image: time-it-s-more-like-a-big-ball-of-wibbly...-stuff.jpg]

Do you even time travel bro?

Why can't i compile C# into bytecode?


RE: ask a stupid question, get a stupid answer - Nether_Ruler - 08-12-2016

Cause you need fingers to do that

Where is the good music at


RE: ask a stupid question, get a stupid answer - TheOnlyKat - 08-12-2016

hell, because that's where we're all going.

Why can't cats chirp like birds?


RE: ask a stupid question, get a stupid answer - Penguin - 08-12-2016

(08-12-2016, 06:29 PM)TheOnlyKat Wrote: Why can't cats chirp like birds?

Do you want to see this looking through your window?

[Image: large.jpg]


Thought not.

Why is it literally just me, kat, and rasse on this thread


RE: ask a stupid question, get a stupid answer - TheNamesGames - 08-12-2016

since we have nothing better or more important things to do in our silly lives. (exept nether, he is in here somewhere, nobody knows where)



look at those maggots fighting against zombies. even their swords need a haircut. where can i get one?


RE: ask a stupid question, get a stupid answer - TheOnlyKat - 08-12-2016

North east of Russia.

When will Donald trump give up his goals?


RE: ask a stupid question, get a stupid answer - The_4thdoctor - 08-12-2016

When he marries rasse

Why are my legs asleep


RE: ask a stupid question, get a stupid answer - TheOnlyKat - 08-12-2016

Because you're asleep.

Why can't I hear my music?


RE: ask a stupid question, get a stupid answer - Penguin - 08-12-2016

Listen to better music.

Why doesn't my code work?

import random, string

def randomword(length):
   return ''.join(random.choice(string.ascii_lowercase) for i in range(length))

def CheckTitle(name):
   if name in clubChampions:
      return str('[Champion] ' + name)
   elif name in grandMasters:
      return str('[GrandMaster] ' + name)
   elif name in masters:
      return str('[Master] ' + name)
   else:
      return name
   
def updatetitlelist():
   global clubChampions
   clubChampions = []
   global grandMasters
   grandMasters = []
   global masters
   masters = []
   users.sort(reverse = True)
   running = True
   currentuser = 0
   currentscore = users[0][0]
   while running:
      if users[currentuser][0] == currentscore:
         clubChampions.append(users[currentuser][1])
         currentuser += 1
      else:
         running = False
   for x in range(0, round((len(users) - 1) / 10)):
      grandMasters.append(users[x + 1][1])
      currentscore = users[x + 1][0]
   running = True
   currentuser = round((len(users) - 1) / 10) + 1
   while running:
      if users[currentuser][0] == currentscore:
         grandMasters.append(users[currentuser][1])
         currentuser += 1
      else:
         running = False
   for x in range(0, round((len(users) - 1) / 5)):
      masters.append(users[x + 1][1])
      currentscore = users[x + 1][0]
   running = True
   currentuser = round((len(users) - 1) / 5) + 1
   while running:
      if users[currentuser][0] == currentscore:
         masters.append(users[currentuser][1])
         currentuser += 1
      else:
         running = False
      
def PrintLeaderBoard():
   prevScore = ''
   prevRank = 1
   rank = 1
   for x in users:
       if x[0] == prevScore and prevRank < 10:
           print('    ',CheckTitle(x[1]),x[0])
       elif x[0] == prevScore:
           print('     ',CheckTitle(x[1]),x[0])
       else:
           print(rank,': ',CheckTitle(x[1]),x[0])
           prevRank = rank
       prevScore = x[0]
       rank += 1

users = []
for x in range(101):
    users.append([str(random.randint(1900,2100)),randomword(3)])
users.sort(reverse = True)
print(users)
print()
print()
print('Current leaderboard:')
updatetitlelist()
PrintLeaderBoard()

Just kidding, it works xDD


RE: ask a stupid question, get a stupid answer - TheOnlyKat - 08-12-2016

Because you're a high class nerd.

When will we all become kittens?