first load
control games like Tile2048 , Black Jack , Jacks or Better by running a javascript in the console The JS takes the state of the game pass it into the server The server I wrote some logic to detect the next move The server than returns a move into the client script which than operate over the site
it works with http://bitcoin2048.com/
Copy to console in firefox and run it ... make sure [serviceURL] points to correct local url .