Why not? Seemed like a good way to expirament with the capabilities of node.js, HTML5 WebSockets, and real-time web applications.
Go to the project directory in a terminal and type the following command.
node server.js [http=<port>] [ws=<port>] [wordfile=<path>]
###Program arguments
- http | httpPort = Server port for http requests (default is 8090)
- ws | wsPort = Server port for web socket requests (default is 8091) Note that if you change the web socket port, the parameter will also need to be changed in the index.html file
- wordfile = A JSON file which contains the words to be used in the game
Open up the game by navigating to the url http://localhost:8090 (or the http port specified in the program arguments), and start dragging around some words. Try opening up a couple browsers and watch what happens. Try with a couple friends. Have Fun!
Tested on latest version of Chrome/FireFox/IE
- Make it more real-time (see words move as another user moves them, instead of after they drop them) without sacrificing performance.
- Not quite sure yet...