It's so crazy to think that week 4 has come to an end. These past few weeks have flown by and the amount of stuff we've learned is insane. These past few days we've been working on our mock hackathon project. It's a simple rock paper scissors game but it's more difficult to construct than I had thought. By making use of the PostgreSQL database, and sessions (great article on them by the way : http://machinesaredigging.com/2013/10/29/how-does-a-web-session-work/ ) we need to allow for certain things to happen
Alex and I are partners because we really work well together and I'm glad we don't have arguments. We're about halfway through. It's really nice working on this because I finally understand how to work the erb files and CRUD methods. Tying in the front-end to the back-end is still my weakness but I'm learning! I'll update when we finish tomorrow night.
UPDATE**************************
Our finished project ! (slideshow)
- use Sinatra to have a user interface (web application) not just the terminal
- each player can sign up or sign in using a unique username (no duplicates)
- each player will have a password but it'll be secure by making use of encryption (using an encryption gem, sha1)
- when a player signs in, a session ID is assigned so that the browser can remember them which prevents them from being asked to repeatedly log in (--> can't get this to work yet, don't really understand if I need to make a new table in the database or not)
- the game can be asynchronous meaning one player can make a move before the second
- each player's history can be recorded, and a win consists of 3/5 wins
Alex and I are partners because we really work well together and I'm glad we don't have arguments. We're about halfway through. It's really nice working on this because I finally understand how to work the erb files and CRUD methods. Tying in the front-end to the back-end is still my weakness but I'm learning! I'll update when we finish tomorrow night.
UPDATE**************************
Our finished project ! (slideshow)