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

Ruby

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Forum Contest: Build a Tic-Tac-Toe Game in Ruby

After you've watched the video, please read the details below carefully. I'm looking forward to your entries!

How to Enter: Create a command line Tic Tac Toe game in Ruby. Here's a [refresher on Wikipedia] for how the game works. The game should be text (not web!) based and have classes for both the player and game. The second player can be another player or the computer. If you choose to make it a two player game, this does not have to be a networked game -- assume that the second player is on the same computer and ask them for input. Create a GitHub repository and paste a link to it in the comments.

Due Date: All entries must be submitted by August 25th at 11:45pm EST. Here's a timezone chart so you can see what time that is for your locale.

Prize: The entries will be judged by Treehouse teachers based on code. One winner will receive a free month of Treehouse Pro on us! :) We'll announce the winner on September 1st and reveal the next contest.

5 Answers

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Good luck to all participants!

Have fun :)

Laura Cressman
Laura Cressman
12,548 Points

Here is my entry, a game for two players. Thank you for your consideration! https://github.com/hilaura13/TicTacToe Smile more:) Laura

Alexander Batalov
Alexander Batalov
21,887 Points

Here is my entry GitHub link. To play a game run:

            $ ruby example/example_game.rb

Thank you!

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hi everyone!

What a tough week! Both entries were really great this week but Alexander Batalov won by a hair. Keep up the great work -- these all make great portfolio additions.

This week's winner is Alexander Batalov! His entry was extremely high quality all around. The test suite, while not required, definitely helped seal the deal.

The next forum contest is about iOS Pong. Great job everyone!