Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Hello everyone I'm working my way up on scripting languages just wanted to see what other scripters are making.
Btw right now Im just starting to work on C++...
Here's what I have to show:
Name Mixer (Javascript)
var malename = ["Tom","Roger","Jeff","Sam","Jack","Jake","Max","James","Joseph","John","Bob", "Fred","Spencer","Charley","Joe","Joey","Austin","Ben","Blake","Corey","Kasey","Lee"]; var malename = malename[Math.floor(Math.random() * malename.length)]; var femalename = ["Muriel","Abby","Julie","Mary","Susan","Marie","Lisa","Dorothy","Katie","Kathy","Debbie","Barb","Cara","Jane","Cassey","Jessica","Betty","Carol","Sarah","Amanda","Ann"] var femalename = femalename[Math.floor(Math.random() * femalename.length)]; var maletitle = ["Mr.","Mr.","Mr.","Dr.","Prof."," "," "," "," "," "," "," "," "," ","Fr.","Coach","Officer","Senator","Representative","Sir","Judge"]; var maletitle = maletitle[Math.floor(Math.random() * maletitle.length)]; var femaletitle = ["Mrs.","Miss","Mrs.","Mrs."," "," "," "," "," "," "," "," "," ","Prof.","Dr.","Coach","Officer","Senator","Representative","Judge"] var femaletitle = femaletitle[Math.floor(Math.random() * femaletitle.length)]; var lastname = ["Smith","Johnson","Jackson","Brown","Jones","Harris","Scott","Baker","Watson","Peterson","Clark","Davis","Miller","Anderson","White","Robinson","Hill","Wright","Adams","Carter","Collins"]; var lastname = lastname[Math.floor(Math.random() * lastname.length)]; var name = prompt("Do you want your name to be boy, girl, or random? no caps.") if (name == "boy") { alert(maletitle+" "+malename+" "+lastname) } else if(name == "girl") { alert(femaletitle+" "+femalename+" "+lastname) } else{ var number = Math.floor(Math.random() * 2) + 1 } if(number == 1){ alert(maletitle+" "+malename+" "+lastname) } else if(number == 2){ alert(femaletitle+" "+femalename+" "+lastname) }
Next Up some Python
Here are some codes for Python Counters
import time x = int(raw_input("Enter a starting number number")) while x == x: time.sleep(1) x = x + 1 print x if x % 2: print "--" if x % 1: print "-" if x % 3: print "---" if x == 10000: print"That is sure a big number"
import time a = int(raw_input("Number to start at")) b = int(raw_input("Number to end at")) c = int(raw_input("Seconds in between")) d = raw_input("What to say when countdown has finished") while a > b: time.sleep(c) print a a = a - 1 while a < b: time.sleep(c) print a a = a + 1 print d
A graph Plotter (Python)
import matplotlib.pyplot as plt x = int(raw_input("First number on graph")) y = int(raw_input("Second number on the graph")) z = int(raw_input("Third number on the graph")) m = int(raw_input("Fourth and final number on the graph")) t = raw_input("Title for graph") q = raw_input("Y title for graph") a = raw_input("Type of plot?(Line or Plot)") if a == "Line": plt.plot([x,y,z,m]) plt.ylabel(q) plt.title(t) plt.show() if a == "Plot": plt.plot([1,2,3,4], [x,y,z,m], 'ro') plt.axis([0, 6, 0, 20]) plt.show()
A Number game (Python)
import random guessesTaken = 0 myName = raw_input('Hello what is your name?') number = random.randint(1, 1000) print('Hi, ' + myName + ', Try to guess a number between 1 and 1000,') while guessesTaken < 10: print('try and guess a number :).') guess = input() guess = int(guess) guessesTaken = guessesTaken + 1 if guess < number: print('Guess a higher number because yours was too low.') if guess > number: print('Guess a lower number because yours was too high.') if guess == number: break if guess == number: guessesTaken = str(guessesTaken) print('You won, ' + myName + '! You took ' + guessesTaken + ' guesses, Great job ' + myName) if guess != number: number = str(number) print('Im sorry you lose, the real number is ' + number)
And Finally just a program that takes your number than multiplies it by 15%...Long title...(Python)
import random a = int(raw_input("Enter in one number.")) b = int(raw_input("Enter in another number.")) c = .15 * a d = b - c e = b + c print(random.uniform( d, e))
This is definitely not all the programs I have made but all the ones that were found...
Please show me what you have come up with and also Comment on mine.
Last edited by twin802 (Apr 2 2012 1:22:06 pm)
I only know the basics of C#, and I just started learning Java a couple days ago.
So thus, the most advanced thing that I made (capasha/doh contributed a load, though) is my EE bot, which currently is nothing more than a chat-bot like the 4.1 million others.
Yeah, well, you know that's just like, uh, your opinion, man.
Offline
Lol...At least you were able to make a bot...I am having troubles with bots.
And so far you're the only person to respond so I'm beginning to think there aren't many scripters...
There are plenty. We just don't feel like responding, I guess. I've made a few small scripts. I might post links later.
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
well your scripts don't seem to do anything too useful seems like you were just playing around and experimenting. i made an ee animator in c++, it's multithreaded for animating platforms.
Yes I agree these scripts do mostly nothing. I am though working on a script in C++ for a bot.
So is it possible to lock this topic? :/
*locked*
...
*locked 4 reelz*
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
[ Started around 1738699813.8753 - Generated in 0.062 seconds, 12 queries executed - Memory usage: 1.39 MiB (Peak: 1.49 MiB) ]