Working on UI, its taking too long :(
* Simplified some seriously messed up code. Was really tough.
* done: turn timeout, quitting in middle of the game, and folding, last man standing wins without needing any action on his part.
* todo: betting specific amount, tie and ensuring that one cannot see everyone’s cards beforehand.
* Players now can choose to sit on a specific seat, only if available.
* Have ensured that betting rotation works perfectly in order of seats taken, even if new players join later.
* Now distributing a random card (number between 1-13) to each player and declaring a winner after betting round is over.
* Have not taken care of tie :)
* This was some work.
* Next step is to handle turn timeout, quitting in middle of the game, betting specific amount, folding, tie and ensuring that one cannot see everyone’s cards beforehand.
* Lots of work left.
* PokerBaba ki…
* Game starts as long as there are more than one player seated in a room.
* Each player is prompted to bet, in its own turn. (need to handle turn timeout and do auto-fold)
* Game ends when all players have clicked on ‘Bet’.
* Game restart after 5sec, if there are enough players seated on table, or goes in waiting-for-players state.
* FSM rock.
* Lots of edge cases need to be tackled.
* Next step is to make players sit on specific seats, deal cards, turn timeout and handle case when player stands up in middle of a game.
* Pokerbaba ki…
* Thinking of buying some stock images to create a logo for pokerbaba.
* This is a first draft in gimp using some stock images.
* Coding poker game states is now super simple. Pokerbaba ki …
* Currently using: https://github.com/jakesgordon/javascript-state-machine/
* Lots of refactoring, it was very much required now. I couldn’t make sense of whats was going on.
* Skipping angular, its overkill for this kind of project. Or maybe not. But it took long time making it play the way I wanted, and things simplified for me after removing it.
* Now users can visit any of the (two hard-coded) rooms.
* One can enter, sit, stand, (or dance) in a room and all this is updated real time on the screen of all the users in that room. (thanks to socket.io)
* Did I mention, lots of refactoring? I am almost happy with the results.
* Now I am exploring a state-machine for emulating various states of a poker game.
* I was planning to add bottom chat windows like zynga pokers’, but onto fsm for now, or may be not !