danvk / danvk.github.io

danvk github pages
4 stars 0 forks source link

Migrate Boggle #4

Open danvk opened 9 years ago

danvk commented 9 years ago

Current http://danvk.org/boggle.php is broken but still gets a decent amount of traffic.

One attractive option would be to re-implement Boggle in JavaScript and run it as a service on Heroku.

I could also build & run the C++ binary from danvk.org on Heroku.

danvk commented 9 years ago

I put webboggle up in a git repo: https://github.com/danvk/webboggle

and have a REST API running on Heroku:

$ curl 'http://webboggle.herokuapp.com/abcdefghijklmnop'
{
  "fie": "11 02 01",
  "fin": "11 02 13",
  "fink": "11 02 13 22",
  "fino": "11 02 13 23",
  "glop": "21 32 23 33",
  "ink": "02 13 22",
  "jin": "12 02 13",
  "jink": "12 02 13 22",
  "knife": "22 13 02 11 01",
  "knop": "22 13 23 33",
  "kop": "22 23 33",
  "lop": "32 23 33",
  "mink": "03 02 13 22",
  "nim": "13 02 03",
  "plonk": "33 32 23 13 22",
  "pol": "33 23 32"
}
danvk commented 9 years ago

I put up a demo page here. It has some layout problems and doesn't explain itself very well, but it works!

Remaining tasks: