Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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