Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Useless Ruby Programs  (Read 2089 times)

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Useless Ruby Programs
« on: May 11, 2009, 10:20:07 pm »

Hey there! Here are some useless programs I made in a stupid language.

beginning.rb: Some random shit I made first. Includes a fake loading screen that plays with what I learned.
name.rb: Asks for the three parts of your name and says hi.
pi.rb: It knows pi!
angryboss.rb: He is your boss and he is impatient and angry.
toc.rb: It's a Table of Contents!
twonums.rb: Asks for two numbers and tells you some assorted facts about them.
loop.rb: A time vortex. Say 'bye' to escape it. Ctrl+C if that doesn't work.
recognize.rb: If your name is my name or my father's name it says hi, otherwise it says hello.
favnum.rb: Takes your favorite number and makes it better!
deafgrandma.rb: It is your deaf grandmother. Same as the loop to escape.
say.rb: A little question process. Comes with sample quiz.
tree.rb: A simulation where you take care of an orange tree from birth to death. Use 'help' for help.
dice.rb: Greatly expanded dice roller. Comes now with prompt.
And others I forgot about!

Download here!
« Last Edit: May 12, 2009, 09:58:33 pm by Squeegy »
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: Useless Ruby Programs
« Reply #1 on: May 12, 2009, 05:34:23 pm »

Yay! Crappy crappily-written programs! I shall have fun with this.
Logged

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #2 on: May 12, 2009, 06:20:42 pm »

Indeed. I'm working on an interactive orange tree program. Where you raise an orange tree. Exciting.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

viskaslietuvai

  • Bay Watcher
    • View Profile
Re: Useless Ruby Programs
« Reply #3 on: May 12, 2009, 06:58:39 pm »

Indeed. I'm working on an interactive orange tree program. Where you raise an orange tree. Exciting.

That is awesome. Doesn't it take a long time for citrus trees to go from seed to fruit bearing trees?
Logged
The open way's too dangerous / Listen close they're watching us
One more time you're losing us / Hold still they're shooting us
First wave down / I wonder when they're coming back
First wave intact
-Secret Machines- First Wave Intact
Gobbo Invasion Song!

Derakon

  • Bay Watcher
    • View Profile
Re: Useless Ruby Programs
« Reply #4 on: May 12, 2009, 09:07:48 pm »

If you're looking for random things to do with programming languages, I highly recommend Project Euler. The problems there are a good test of your programming skills, and are often educational to solve, to boot.
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #5 on: May 12, 2009, 09:53:29 pm »

Indeed. I'm working on an interactive orange tree program. Where you raise an orange tree. Exciting.

That is awesome. Doesn't it take a long time for citrus trees to go from seed to fruit bearing trees?

Well, the years pass by in the press of a button.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Dasleah

  • Bay Watcher
    • View Profile
Re: Useless Ruby Programs
« Reply #6 on: May 12, 2009, 10:22:59 pm »

Just to clarify before the inevitable, these programs are written in Ruby, so you'll need an install of that to run them.

Now, time to man up, try Ruby-on-Rails, give up, and switch to Python. You know you want to.
Logged
Pokethulhu Orange: UPDATE 25
The Roguelike Development Megathread.

As well, all the posts i've seen you make are flame posts, barely if at all constructive.

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #7 on: May 12, 2009, 10:36:50 pm »

Added two programs.

The Python books were $40 so I'll stick to $20 Ruby for now
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

viskaslietuvai

  • Bay Watcher
    • View Profile
Re: Useless Ruby Programs
« Reply #8 on: May 12, 2009, 11:13:58 pm »

Or you could do what I did with C++ books.
Pirate the hell out of 'em.
Torrents ain't just for movies, games and other time wasters, it can be used for cheap as free edumacation. There are complete courses worth of textbooks on random stuff like medieval economics and society, art history, crazy advanced math, and the kicker, programming.
Maybe you have a moral dilemma.
Logged
The open way's too dangerous / Listen close they're watching us
One more time you're losing us / Hold still they're shooting us
First wave down / I wonder when they're coming back
First wave intact
-Secret Machines- First Wave Intact
Gobbo Invasion Song!

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #9 on: May 12, 2009, 11:21:17 pm »

I would, but I don't like to pirate good things. That feels unfair. I prefer to pirate shitty things, like Spore.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Dasleah

  • Bay Watcher
    • View Profile
Re: Useless Ruby Programs
« Reply #10 on: May 12, 2009, 11:30:43 pm »

Who needs to buy books? Dive Into Python is probably the best 'books' on learning Python outside Python's own tutorials.
Logged
Pokethulhu Orange: UPDATE 25
The Roguelike Development Megathread.

As well, all the posts i've seen you make are flame posts, barely if at all constructive.

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #11 on: May 12, 2009, 11:33:09 pm »

Less learning more C&C.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Rysith

  • Bay Watcher
    • View Profile
Re: Useless Ruby Programs
« Reply #12 on: May 13, 2009, 12:00:39 am »

For Ruby books, there is Why's (Poignant) Guide to Ruby, with accompanying Hackety Hack
Logged
Lanternwebs: a community fort
Try my orc mod!
The OP deserves the violent Dwarven equivalent of the Nobel Peace Prize.

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #13 on: May 13, 2009, 09:29:18 am »

Just got working a simulator where you control the lights in an intersection and must avoid pileups and crashes. Exciting!
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: Useless Ruby Programs
« Reply #14 on: May 13, 2009, 08:51:40 pm »

Download Traffic Control here!

Need suggestions for games.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles
Pages: [1] 2