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
John Steer-Fowler
Courses Plus Student 11,734 PointsEaster 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?
Highscores:
- Andrew Olson - Time: 3.7 mins
- John Steer-Fowler - Time: 4.4 mins
- Robby Faller - Time: 8.4 mins
- Jovanny Elias - Time: 11.0 mins
- Iain Simmons - Time: 11.2 mins
John Steer-Fowler
Courses Plus Student 11,734 PointsThanks Robby Faller!
Have you played? Will add your score to highscore list
Also, how did you find it?

tootiemcflow
5,601 PointsHey John Steer-Fowler, I'm about to give it a shot right meow.

tootiemcflow
5,601 PointsHey 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
John Steer-Fowler
Courses Plus Student 11,734 PointsHehe, 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

Jovanny Elias
16,204 PointsSounds 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.
John Steer-Fowler
Courses Plus Student 11,734 PointsI 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.

Jovanny Elias
16,204 PointsI 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.
John Steer-Fowler
Courses Plus Student 11,734 PointsJovanny 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.

Andrew Olson
4,028 PointsHi 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
John Steer-Fowler
Courses Plus Student 11,734 PointsHi 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.

Iain Simmons
Treehouse Moderator 32,305 PointsNice 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.
John Steer-Fowler
Courses Plus Student 11,734 PointsNice one Iain,
Glad you liked it.
I will implement that space for Version 2 which I am currently working on.
Thanks for your feedback
tootiemcflow
5,601 Pointstootiemcflow
5,601 PointsFor anyone that wants to play Johns game and isn't too familiar with ruby/console. Follow the steps below:
irb pokemon.rb
.