| View previous topic :: View next topic |
| Author |
Message |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Mon Aug 22, 2011 3:02 pm Post subject: Can't believe I'm this bored.. |
|
|
...but in my last class I decided to make a random word generator.
...how is it possibru to be THAT FUCKING BORED?
Oh well, I figure I can use it in a test where I call out a randomly generated word and the subject gives the first color they think of. Then use the wildcard constructor to see if there are trends between certain sounds and colors.
If anyone wants to see the, crappy, code. It's right here. Still have quite a few rules to add in to make the words pronounceable though. http://pastebin.com/JwNgN3Ww
guess it's better than doing nothing :/ |
|
| Back to top |
|
 |
Kargarok Advanced Cheater
Reputation: 10
Joined: 28 Jul 2011 Posts: 60
|
Posted: Mon Aug 22, 2011 3:05 pm Post subject: |
|
|
| Get laid. |
|
| Back to top |
|
 |
:^) Grandmaster Cheater Supreme
Reputation: 37
Joined: 30 Jun 2008 Posts: 1062
|
Posted: Mon Aug 22, 2011 3:06 pm Post subject: |
|
|
CODE A JAVA SEX GAME
FUCK |
|
| Back to top |
|
 |
Channel GannoK pffrt
Reputation: 130
Joined: 12 Apr 2008 Posts: 608
|
Posted: Mon Aug 22, 2011 3:06 pm Post subject: |
|
|
I could make that in VB. Simply, and probably more efficient. lul. _________________
|
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Mon Aug 22, 2011 3:08 pm Post subject: |
|
|
| That fag wrote: | | I could make that in VB. Simply, and probably more efficient. lul. |
doitfeggit
Still fun to mess around with though. |
|
| Back to top |
|
 |
Channel GannoK pffrt
Reputation: 130
Joined: 12 Apr 2008 Posts: 608
|
Posted: Mon Aug 22, 2011 3:11 pm Post subject: |
|
|
I'd have to install vb again. Maybe when I start school, I'll go in at lunch and make a quick copy and upload it lol. don't feel like installing vb on this computer when I only little memory left _________________
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Mon Aug 22, 2011 3:49 pm Post subject: |
|
|
| visual basic is not particularly efficient fyi |
|
| Back to top |
|
 |
Channel GannoK pffrt
Reputation: 130
Joined: 12 Apr 2008 Posts: 608
|
Posted: Mon Aug 22, 2011 3:50 pm Post subject: |
|
|
| Slugsnack wrote: | | visual basic is not particularly efficient fyi |
Not an expert in coding, but its the only thing I know how to do well in the programming world. I know its really easy to use, but there is SOME coding to be done. it uses simply logic, which I like. _________________
|
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Mon Aug 22, 2011 6:21 pm Post subject: |
|
|
Also how would you measure efficiency? My program (with the current rules) makes 5000 words in a fraction of a second. I'm just not sure how you'd go about making yours more efficient.
I mean, maybe having each program make like..200,000 words. Then it will probably be a measurable time. |
|
| Back to top |
|
 |
Channel GannoK pffrt
Reputation: 130
Joined: 12 Apr 2008 Posts: 608
|
Posted: Mon Aug 22, 2011 6:25 pm Post subject: |
|
|
VB uses less code I believe than other languages. I could be wrong.
make a text box and button in the form
double click button in the form
make the button pick a random word from form 2 which will have all my words and export it to the text box
set some properties to not pick a word twice, from the time of loading the program to now.
and other simple things. all within a couple lines of code. like 4-6 _________________
|
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Mon Aug 22, 2011 6:28 pm Post subject: |
|
|
| That fag wrote: | VB uses less code I believe than other languages. I could be wrong.
make a text box and button in the form
double click box in the form
make the even pick a random word from form 2 which will have all my words
set some properties to not pick a word twice, from the time of loading the program to now.
and other simple things. all within a couple lines of code. like 4-6 |
Ooohh, I thought you meant you were going to make an exact copy o what my program does, BUILDS words that can pronounced by checking them against certain rules. Didn't realize you were going to do your own thing.
EDIT: Plus this, and many other simple little progs I've been making, are just me teaching myself to break out of single class programs and learn some oop, so most wont have efficiency in mind when creating them.
Last edited by Evil_Intentions on Mon Aug 22, 2011 6:30 pm; edited 1 time in total |
|
| Back to top |
|
 |
Channel GannoK pffrt
Reputation: 130
Joined: 12 Apr 2008 Posts: 608
|
Posted: Mon Aug 22, 2011 6:29 pm Post subject: |
|
|
| Kazekeil wrote: | | That fag wrote: | VB uses less code I believe than other languages. I could be wrong.
make a text box and button in the form
double click box in the form
make the even pick a random word from form 2 which will have all my words
set some properties to not pick a word twice, from the time of loading the program to now.
and other simple things. all within a couple lines of code. like 4-6 |
Ooohh, I thought you meant you were going to make an exact copy o what my program does, BUILDS words that can pronounced by checking them against certain rules. Didn't realize you were going to do your own thing. |
I could implement some of your ideas, but it would take more time and some more code _________________
|
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Mon Aug 22, 2011 6:32 pm Post subject: |
|
|
| That fag wrote: | | Kazekeil wrote: | | That fag wrote: | VB uses less code I believe than other languages. I could be wrong.
make a text box and button in the form
double click box in the form
make the even pick a random word from form 2 which will have all my words
set some properties to not pick a word twice, from the time of loading the program to now.
and other simple things. all within a couple lines of code. like 4-6 |
Ooohh, I thought you meant you were going to make an exact copy o what my program does, BUILDS words that can pronounced by checking them against certain rules. Didn't realize you were going to do your own thing. |
I could implement some of your ideas, but it would take more time and some more code |
Could probably do it pretty cleanly in QBasic.
This is the class that uses my "Words" class.
http://pastebin.com/j41SdAe5
Pretty simple to follow. The Word class handles nearly errthing. |
|
| Back to top |
|
 |
1929394839292057839194958 Grandmaster Cheater Supreme
Reputation: 130
Joined: 22 Dec 2006 Posts: 1509
|
Posted: Mon Aug 22, 2011 8:11 pm Post subject: |
|
|
| Just because you type less, it doesn't mean other shit isn't being done for you in the background (pretty much what you could make out of pure code, but is already there for you). |
|
| Back to top |
|
 |
|