AND one of
OR
-
clone repo https://github.com/bdubner/sudochess to project directory
-
Start redis server
docker pull redis docker run --name some-redis -p 6379:6379 -d redis
-
install npm dependencies
npm install
-
run SudoChess Server
node bin/www
- run
vagrant up
NOTES:
-
To stop SudoChess server from terminal use
vagrant ssh -c "pkill node -9"
-
To start sudoChess server (in case server stops) use
vagrant ssh -c "nohup node /vagrant/bin/www & sleep 1"
-
To stop VM use
vagrant halt
-
To delete VM use
vagrant destroy
After the above steps for either option, you should be able to visit http://localhost:3000/ and see the SudoChess home page. (See Using Web App section for how to use web app )
-
cd sudocommunicator
-
npm install
-
After creating a game, run
node send_move.json [port]
where [port] is the port number displayed below your name on the web app.
you will be displayed the moves sent from the server in stdout
and you can send moves to the server by entering
src dest
where src and dest are square locations (ie. e2 e4
)
-
go to (chrome tab) http://localhost:3000/
-
click "Login / Register"
-
Create new user by clicking "Sign Up" at bottom of prompted page
-
Launch incognito tab
-
repeat steps 1-4 to create 2nd user (or use user:[email protected] password:asdf1234ASDF)
-
In first tab click 'Create Room' button in Nav Bar
-
Copy room to incognito tab and click 'Join Room' button
-
In incognito tab, click 'Find Game' button
-
In first tab, click accept