Skip to content

Instantly share code, notes, and snippets.

@bughuntsman
Created March 24, 2017 02:21
Show Gist options
  • Save bughuntsman/cfa72ae39f07caa0ab63054fe7988d95 to your computer and use it in GitHub Desktop.
Save bughuntsman/cfa72ae39f07caa0ab63054fe7988d95 to your computer and use it in GitHub Desktop.
  • "/games/" POST { name: "juego", id: 123, over: true }

  • "/games/play" POST

x = 1 y = 3 type = x ; o

x = params[:x] y = params[:y]

game.board = {"1,1" => "o", "1,3" => "x"} game.save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment