Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Easter Pokemon Game (made with Ruby)

Hi everyone,

I just finished a game that I created for Treehouse Students to play on Easter.

It's Pokemon, but in a few minutes rather than hours.

To play, you need to Fork my snapshot. Then open the Console and type 'ruby pokemon.rb'

Play it here: https://w.trhou.se/fhwh8ehs6b

Or play here (click 'run' to play)

Once you complete the game, post your time up here as an answer (or post a screenshot of your Pokedex like I have).

Ps. There is an Easter Egg in the game for you to find (although it's fairly rare)

Please Fork/Tinker/Improve it as much as you want

Good Luck :D And let me know how you find it/give me feedback and tips for future versions and to help me improve my programming

Jason Seifer, Nick Pettit, Wayne Priestley, Iain Simmons, Andrew Olson, Jovanny Elias care to play?

Link to my Highscore/Pokedex

Highscores:

  1. Andrew Olson - Time: 3.7 mins
  2. John Steer-Fowler - Time: 4.4 mins
  3. Robby Faller - Time: 8.4 mins
  4. Jovanny Elias - Time: 11.0 mins
  5. Iain Simmons - Time: 11.2 mins

For anyone that wants to play Johns game and isn't too familiar with ruby/console. Follow the steps below:

  1. First you need to fork Johns Snapshot. You can do this by clicking on Fork Snapshot in the top right corner.
  2. Once you do that a new tab will open up and ask you to Fork Workspace. After you agree to Fork the game to your Workspace a new window will open with Johns source code.
  3. At the bottom of this Workspace you should see the Console with the blinking prompt cursor. Type in irb pokemon.rb.
  4. You're now playing Johns Pokemon game.

Thanks Robby Faller!

Have you played? Will add your score to highscore list

Also, how did you find it?

Hey John Steer-Fowler, I'm about to give it a shot right meow.

Hey John Steer-Fowler,

For a moment I thought I was going to win at Pokemon. You know, catch'em all? But my attempt to catch them all eventually came to a end at 8.4 minutes.

It was overall pretty good! But I'd suggest adding a occasional fail when catching a Pokemon. Maybe you do have this implemented already and I'm just the best there ever was and managed to pass my one true test. =D

Robby Faller

Hehe, nice one :D

I am going to add the 'fail catch' feature soon. Just wanted to actually release it on Easter Sunday and that functionality would take me longer.

This is the first full program I have ever made, so it wasn't going to be Mona Lisa. Glad you enjoyed it.

Also, well done on hitting the Easter Egg :P You got Mewtwo by catching the 3 rare birds

3 Answers

Sounds interesting I will check it out when I am at home. You should upload it on github it's much easier for people to contribute add feedback and suggest new update ideas or even add to your code.

I will put it in GitHub now. I just wanted to make good use of Treehouse's new Snapshot feature :P Give it a play when your home and let me know how it goes.

I won at 10:10. I liked it, very good no real issues as far as bugs. The only thing would be what robby said. so far so good. looking forward to seeing another update to it.

Jovanny Elias, glad you liked it. I am going to work on updating it soon. Also, I find it rather repetitive, so I might need to add another dimension to the game. Thanks for trying it out.

Hi John!

That's great! I think I found the the Easter egg.

Congratulations, you successfully caught the wild Mew!                                                        

----------------------------------------                                                                      
Your Pokemon:                                                                                                 
----------------------------------------                                                                      
Name:          Level:           Status:                                                                       
Charmander       1               Alive                                                                        
Rattata          3               Alive                                                                        
Oddish           8               Alive                                                                        
Machop          13               Alive                                                                        
Shellder        18               Alive                                                                        
Onix            19               Alive                                                                        
Voltorb         21               Alive                                                                        
Lickitung       23               Alive                                                                        
Rhyhorn         24               Alive                                                                        
Goldeen         26               Alive                                                                        
Mr. Mime        27               Alive                                                                        
Eevee           32               Alive                                                                        
Articuno        37               Alive                                                                        
Zapdos          37               Alive                                                                        
Moltres         37               Alive                                                                        
Articuno        37               Alive                                                                        
Mew             40               Alive                                                                        
Mewtwo          99               Alive                                                                        
----------------------------------------                                                                      
You finished the game in: 3.7minutes                                                                          

Take a screenshot here: And share it on the Treehouse Forum for this game                                     

Hi Andrew Olson

Ah, nice one! 3.7minutes too.. made it look easy.

Good job with Snapshots, makes sharing Treehouse projects a lot easier and allows other students to look into the project's code.

Nice work!

----------------------------------------                                               
Your Pokemon:                                                                          
----------------------------------------                                               
Name:          Level:           Status:                                                
Squirtle         1               Alive                                                 
Clefairy         6               Alive                                                 
Mankey          11               Alive                                                 
Farfetch'd      16               Alive                                                 
Krabby          20               Alive                                                 
Tangela         25               Alive                                                 
Pinsir          30               Alive                                                 
Jolteon         33               Alive                                                 
Moltres         37               Alive                                                 
Articuno        37               Alive                                                 
Zapdos          37               Alive                                                 
Mew             40               Alive                                                 
Mewtwo          99               Alive                                                 
----------------------------------------                                               
You finished the game in: 11.2minutes

Got slightly distracted somewhere in the middle and took ages to get that Mew!

Hurrah for bonus Mewtwo! :)

By the way, I think you should have a space between the number and 'minutes' for the time at the end there.

Nice one Iain,

Glad you liked it.

I will implement that space for Version 2 which I am currently working on.

Thanks for your feedback