Skip to content

Instantly share code, notes, and snippets.

Created September 2, 2014 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d138a4f2c76bb4b32dd2 to your computer and use it in GitHub Desktop.
Save anonymous/d138a4f2c76bb4b32dd2 to your computer and use it in GitHub Desktop.
class GameController < ApplicationController
include DecisionHelper
def create
@game = Game.new(game_params);
logger.debug "cards"
logger.debug @game.cards
logger.debug @game.cards.size()
logger.debug "players"
logger.debug @game.players
@game.prepare (@game.player_number)
render 'show'
end
private
def game_params
params.require(:game).permit(:small_blind, :big_blind, :player_number, :commit)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment