From afb384e96e5ed32eb2bbe9643b43cf873da5cffd Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 25 May 2018 23:41:10 -0700 Subject: [PATCH] Render the game on create. --- src/Go.cr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Go.cr b/src/Go.cr index 15235b0..d500ec3 100644 --- a/src/Go.cr +++ b/src/Go.cr @@ -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