Inspiration
The "how many jellybeans are in this jar" game.
What it does
Two players are matched up to play a game of "How Many X in a Y". Player 1 chooses the X and Y and Player 2 has to guess how many Xs can fit in a single Y. If they guess it right, they get to choose and they switch places.
How we built it
We used Rails as the server-side framework to make use of the Asset Pipeline. We used Opal to be able to write Ruby on the front end and Clearwater as our front-end framework.
To enable the communication between Player 1 and Player 2, we used Pusher (and the opal-pusher gem) for web sockets.
Challenges we ran into
Organizing all of the application state is difficult, especially since two different instances of the application are running at once in two different browsers. Determining which player was Player 1 and which was Player 2 is hard to coordinate.
Accomplishments that I'm proud of
What I learned
What's next for How Many
Built With
- clearwater
- ruby
- ruby-on-rails
Log in or sign up for Devpost to join the conversation.