Render the game on create.

This commit is contained in:
Danila Fedorin 2018-05-25 23:41:10 -07:00
parent ea96fbd680
commit afb384e96e

View File

@ -90,7 +90,11 @@ post "/create" do |env|
end
game = Go::Game.new(Go::Size::Small, black_pass, white_pass)
create_game(nil, GAME_CACHE, game, game_id.as(String))
"Created!"
id = game_id
size = game.size.value
black = color_e == Go::Color::Black
render "src/Go/views/game.ecr", "src/Go/views/base.ecr"
end
end