Distributable Battleship game capable of being played over a network
Artificial intelligence project to color graphs
- python 2.7
$ pip install virtualenv
$ virtualenv venv
$ source venv/bin/activate
-
Activate your virtual environment
-
$ pip install requirements.txt
From the root directory of your project
$ cd battleship/web
$ python server.py <their_port> <path_to_board>
Note: Your board should be 10 lines of length 10 characters
use _ to denote nothing and the appropiate letter to represent a ship
$ python client <their_ip> <their_port> <x> <y>
In your browser view localhost:<port>/own_board.html
In your browser view localhost:<port>/opponent_board.html
This will make git run tests before you make a commit
From the root directory of your project:
$ echo "./run-tests.sh" > .git/hooks/pre-commit
$ chmod +x .git/hooks/pre-commit
- Create a new branch to do changes on
- Branch should be appropriately named for the changes made
- Create a PR from your branch to master
- After your branch receives a
+1it can be merged