Step 4 creating some game logic - Thewessen/tic-tac-toe_ruby_backend GitHub Wiki
Now that we have our data, we should use it!
Setting up a service for the game logic wasn't that hard either. It didn't suprised me any more a array like object isn't passed by reference too the service. And setting up the bindings manually.
It feels strange the service could only get access through the model data through the controllers. And when you feed it the data too soon, the data isn't ready yet. This should be fixable by utilizing the Promise based api. Something I could do better in the futher.
TODO: Cleaning up the styling? TODO: Look into the use of Promises for accessing model data in the service?